Exemplo n.º 1
0
        private void simpleButton4_Click(object sender, EventArgs e) {
            if (gridView1.FocusedRowHandle < -1)
                return;
            WF_WorkTastTrans wtt = gridView1.GetFocusedRow() as WF_WorkTastTrans;
            frmTaskEditSet ftes = new frmTaskEditSet();
            ftes.RowData = wtt;
            ftes.strType = "edit";

            if (ftes.ShowDialog() == DialogResult.OK) {
                MainHelper.PlatformSqlMap.Update<WF_WorkTastTrans>(wtt);
                refreshData();
            }
        }
Exemplo n.º 2
0
 private void simpleButton3_Click(object sender, EventArgs e) {
     WF_WorkTastTrans wtt = new WF_WorkTastTrans();
     frmTaskEditSet ftes = new frmTaskEditSet();
     wtt.slcid = strWorkFlowID;
     wtt.tlcid = strWorkFlowID;
     wtt.WorkFlowID = strWorkFlowID;
     ftes.RowData = wtt;
     ftes.strType = "add";
     if (ftes.ShowDialog() == DialogResult.OK) {
         MainHelper.PlatformSqlMap.Create<WF_WorkTastTrans>(wtt);
         refreshData();
     }
 }