コード例 #1
0
ファイル: Ucm_ddczzl.cs プロジェクト: s7loves/mypowerscgl
        private void btAdds_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {

            frm_ddczzl frm = new frm_ddczzl();
            bdjl_ddzczl ddczzl = new bdjl_ddzczl();
            ddczzl.kssj = DateTime.Now.ToString();
            ddczzl.zzsj = DateTime.Now.ToString("HH:mm:ss");
            frm.RowData = ddczzl;
            if (frm.ShowDialog() == DialogResult.OK)
            {
                Client.ClientHelper.PlatformSqlMap.Create<bdjl_ddzczl>(frm.RowData);
                RefreshGridData("");
            }
        }
コード例 #2
0
ファイル: Ucm_ddczzl.cs プロジェクト: s7loves/mypowerscgl
 private void btEdits_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (gridView1.GetFocusedRow() == null)
         return;
     bdjl_ddzczl ddczzl = gridView1.GetFocusedRow() as bdjl_ddzczl;
     frm_ddczzl frm = new frm_ddczzl();
     frm.RowData = ddczzl;
     if (frm.ShowDialog() == DialogResult.OK)
     {
         Client.ClientHelper.PlatformSqlMap.Update<bdjl_ddzczl>(frm.RowData);
         RefreshGridData("");
     }
 }