コード例 #1
0
 private void btReEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     DataRow dr = gridView1.GetFocusedDataRow();
    
     WF_TableFieldValue tf = new WF_TableFieldValue();
     tf.ID= dr["RecordId"].ToString();
     frmGYPDXLJSZLTemplate fm = new frmGYPDXLJSZLTemplate();
     fm.Status = "edit";
     fm.ModleGuid = modleGuid;
     fm.OrgName = parentObj.OrgName;
     fm.RowData = tf;
     if (fm.ShowDialog() == DialogResult.OK)
     {
         InitData();
     }
 }
コード例 #2
0
 private void btReAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (parentID == null|| parentID.ToString()=="" )
     {
         return;
     }
     frmGYPDXLJSZLTemplate fm = new frmGYPDXLJSZLTemplate();
     fm.Status = "add";
     fm.ModleGuid = modleGuid;
     fm.OrgName = parentObj.OrgName;
     fm.RowData = new WF_TableFieldValue();
     if (fm.ShowDialog() == DialogResult.OK)
     {
         InitData();
     }
  
     
 }