private void SyncToDB() { try { List <WF_CountersignParameter> paramInfos = new List <WF_CountersignParameter>(); foreach (ListItem item in chklCountersignDept.Items) { if (item.Selected) { paramInfos.Add(new WF_CountersignParameter() { CountersignDeptCode = item.Value, CountersignDeptName = item.Text, CreateByUserCode = _BPMContext.CurrentPWordUser.DepartCode, CreateByUserName = _BPMContext.CurrentPWordUser.DepartName, SeCode = 0 }); } } WF_CounterSign.SyncDataToDB(_BPMContext.ProcID, paramInfos); } catch (Exception ex) { } }
private void InitCountersignCheckboxlist() { //LoggerR.logger.Debug("InitCountersignCheckboxlist"); if (_BPMContext.ProcInst == null || _BPMContext.InstDataInfo == null || _BPMContext.InstDataInfo._CountsignInfo.Infos.Count == 0) { //根据当前部门ID调取会签部门 // // DisplayMessage.ExecuteJs(string.Format("alert('{0}');",_BPMContext.InstDataInfo._CountsignInfo.Infos.Count)); //LoggerR.logger.DebugFormat("_BPMContext.ProcInst == null:{0}", _BPMContext.ProcInst == null); if (_BPMContext.InstDataInfo == null) { _BPMContext.InstDataInfo = new Pkurg.PWorldBPM.Common.Info.ProcInstDataInfo(); } _BPMContext.InstDataInfo._CountsignInfo = new Pkurg.PWorldBPM.Common.Info.CounterSignInfo() { Infos = new List <Pkurg.PWorldBPM.Common.Info.CounterSignDeptInfo>() }; List <Pkurg.PWorld.Entities.Department> depts = WF_CounterSign.GetCountSignDeptInfosByCreater(CounterSignDeptId); foreach (var item in depts) { _BPMContext.InstDataInfo._CountsignInfo.Infos.Add(new Pkurg.PWorldBPM.Common.Info.CounterSignDeptInfo() { DeptInfo = new Pkurg.PWorldBPM.Common.Info.DepartmentInfo() { Id = item.DepartCode, Name = item.DepartName, }, IsChecked = IsDefaultCheckedDepartment(item.DepartName) }); } // LoggerR.logger.Debug("CreateCountersignInfos"); } BindData(); }
protected void btnStart_Click(object sender, EventArgs e) { List <WF_CountersignParameter> item = new List <WF_CountersignParameter>(); WF_CounterSign.SyncDataToDB("1", item); }