ITable table=(ITable recordFeaClass);
IRow row=null;
Int oneCode=table. Fields. FindField (" YJLDM ");
Int oneName=table. Fields. FindField (" YJLMC ");
Int twoCode=table. Fields. FindField (" EJLDM ");
Int twoName=table. Fields. FindField (" EJLMC ");
Int threeCode=table. Fields. FindField (" SJLDM ");
Int threeName=table. Fields. FindField (" SJLMC ");
Int isConversion=recordFeaClass. Fields. FindField (" SFZH ");
for (int i=0; i
String BSM=dgvResult. Rows [I] Cells [r]. "id" Value. The ToString ();
String NCDLSBZD=dgvResult. Rows [I] Cells [r]. "the rural road recognition field" Value. The ToString ();
String num=dgvResult. Rows [I] Cells [r]. "Action" Value. The ToString ();//whether cancellation
If (num=="true")
{
If (BSM!=null)
{
QueryFilter. WhereClause="BSM=" + "'" + BSM + "'";
ICursor updateCursor=table. The Update (queryFilter, true);
While ((row=updateCursor NextRow ())!=null)
{
System. Windows. Forms. Application. DoEvents ();
Bool form=FRM. Form;
If (form==false)
{
The return;
}
+;
//step 3: prepare related data,
SetFormTextValue (a);
Row. Set_Value (isConversion, "yes");
If (NCDLSBZD=="hardening of the rural roads")
{
Row. Set_Value (oneCode, "6");
Row. Set_Value (oneName, "agricultural infrastructure construction land");
Row. Set_Value (twoCode, "0601");
Row. Set_Value (twoName, "country roads land");
Row. Set_Value (threeCode, "060101");
Row. Set_Value (threeName, "village road land");
}
Else if (NCDLSBZD=="non hardening rural roads")
{
Row. Set_Value (oneCode, "23");
Row. Set_Value (oneName, "other land");
Row. Set_Value (twoCode, "2303");
Row. Set_Value (twoName, "field");
Row. Set_Value (threeCode, "");
Row. Set_Value (threeName, "");
}
UpdateCursor. The UpdateRow (row);
The row=updateCursor. NextRow ();
}
}
}
}
Article 120 the data should be 4, 5 minutes have any quick way? The eldest brother help!