多数据窗口提交

来源:互联网 发布:vscode less自动编译 编辑:程序博客网 时间:2024/04/30 12:36

SqlConnection theConnection = new SqlConnection(Function.GetconnStr());


            theConnection.Open();


            Sybase.DataWindow.AdoTransaction transac = new     Sybase.DataWindow.AdoTransaction(theConnection);

 

                transac.BindConnection();


                dw_dis.SetTransaction(transac);


                transac.Transaction = transac.Connection.BeginTransaction();


                dw_dis.UpdateData(true, true);


                dw_pinfo.SetTransaction(transac);


                dw_pinfo.UpdateData(true, true);

 

                dw_AddLeaveChange.SetTransaction(transac);


                dw_AddLeaveChange.UpdateData(true, true);

 

                transac.Transaction.Commit();

原创粉丝点击