//引擎使用 public LicenseBorrowForm(FormTypes actionFormtype, string licenseID) { InitializeComponent(); this.action = Action.AUDIT; formTypeAction = FormTypes.Audit; this.licenseID = licenseID; this.checkState = ((int)CheckStates.Approving).ToString(); InitEvent(); if (action != Action.Add) { if (action == Action.AUDIT) { actionFlag = DataActionFlag.SubmitComplete; } client.GetLicenseBorrowListByIdAsync(licenseID); } if (checkState != ((int)CheckStates.UnSubmit).ToString() && checkState != ((int)CheckStates.UnApproved).ToString()) //只有未提交和未通过才能修改 { SetReadOnly(); } else { SetToolBar(); } }
private void InitEvent() { client = new SmtOADocumentAdminClient(); client.AddLicenseBorrowCompleted += new EventHandler <AddLicenseBorrowCompletedEventArgs>(client_AddLicenseBorrowCompleted); client.GetLicenseBorrowListByIdCompleted += new EventHandler <GetLicenseBorrowListByIdCompletedEventArgs>(client_GetLicenseBorrowListByIdCompleted); client.UpdateLicenseBorrowCompleted += new EventHandler <UpdateLicenseBorrowCompletedEventArgs>(client_UpdateLicenseBorrowCompleted); //audit.AuditCompleted += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_AuditCompleted); //audit.Auditing += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_Auditing); if (action == Action.Add) { //LicenseViewObj = new V_LicenseBorrow(); //LicenseViewObj.licenseUser = new T_OA_LICENSEUSER(); LicenseObj = new T_OA_LICENSEUSER(); licenseObj.STARTDATE = DateTime.Now; licenseObj.ENDDATE = DateTime.Now.AddDays(7); //this.SumbitButton.Visibility = Visibility.Collapsed; //licenseObj = new T_OA_LICENSEUSER(); } else { if (action == Action.AUDIT) { actionFlag = DataActionFlag.SubmitComplete; } client.GetLicenseBorrowListByIdAsync(licenseID); } }
// public OrganAddForm(FormTypes action, string organID) { InitializeComponent(); InitEvent(); licenseMatserObjList = new ObservableCollection <T_OA_LICENSEMASTER>(); //licenseMatserObjOrginList = new List<T_OA_LICENSEMASTER>(); this.action = action; this.checkstate = ((int)CheckStates.Approving).ToString(); //审核中 this.organID = organID; if (checkstate != ((int)CheckStates.UnSubmit).ToString() && checkstate != ((int)CheckStates.UnApproved).ToString()) //只有未提交和未通过才能修改 { SetReadOnly(); } else { if (action == FormTypes.Audit || action == FormTypes.Browse) { SetToolBar(); } } SetFBControl(); txtOrganCode.IsEnabled = false; if (action == FormTypes.Audit) { actionFlag = DataActionFlag.SubmitComplete; } InitData(); }
//void ctrFile_Event_AllFilesFinished(object sender, SMT.SaaS.FrameworkUI.FileUpload.FileCountEventArgs e) //{ // RefreshUI(RefreshedTypes.HideProgressBar); //} #endregion #region InitData private void InitData() { if (actions == FormTypes.New) { ContractViewObj = new T_OA_CONTRACTVIEW(); ContractViewObj.CHECKSTATE = ((int)CheckStates.UnSubmit).ToString(); client.GetEmployeeDetailByIDAsync(Common.CurrentLoginUserInfo.EmployeeID);//获取当期用户信息 this.txtFile.Visibility = Visibility.Collapsed; this.ContractText.Visibility = Visibility.Collapsed; this.txtContractText.Visibility = Visibility.Collapsed; } else { if (actions == FormTypes.Audit) { actionFlag = DataActionFlag.SubmitComplete; } cmsfc.GetContractViewByIdAsync(contractViewID); } if (actions == FormTypes.Audit || actions == FormTypes.Edit) { this.txtContractText.Visibility = Visibility.Collapsed; this.txtFile.Visibility = Visibility.Collapsed; this.ContractText.Visibility = Visibility.Collapsed; //this.ctrFile.Visibility = Visibility.Collapsed; } if (actions == FormTypes.Browse) { this.txtContractText.Visibility = Visibility.Collapsed; this.ContractText.Visibility = Visibility.Collapsed; this.txtTELL.IsReadOnly = true; } }
//public void BindAduitInfo() //{ // SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity = this.audit.AuditEntity; // entity.ModelCode = "housingIssuance"; // entity.FormID = IssuanceObj.ISSUANCEID; // entity.CreateCompanyID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; // entity.CreateDepartmentID = Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID; // entity.CreatePostID = Common.CurrentLoginUserInfo.UserPosts[0].PostID; // entity.CreateUserID = Common.CurrentLoginUserInfo.EmployeeID; // entity.CreateUserName = Common.CurrentLoginUserInfo.EmployeeName; // entity.EditUserID = Common.CurrentLoginUserInfo.EmployeeID; // entity.EditUserName = Common.CurrentLoginUserInfo.EmployeeName; // audit.BindingData(); //} //public void SumbitFlow() //{ // if (IssuanceObj != null) // { // SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity = this.audit.AuditEntity; // entity.ModelCode = "housingIssuance";//"archivesLending";T_HR_COMPANY // entity.FormID = IssuanceObj.ISSUANCEID; //"0b6c8e80-69fa-4f54-810a-1f0d339c6603";//Company.COMPANYID; // entity.CreateCompanyID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; // entity.CreateDepartmentID = Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID; // entity.CreatePostID = Common.CurrentLoginUserInfo.UserPosts[0].PostID; // entity.CreateUserID = Common.CurrentLoginUserInfo.EmployeeID; // entity.CreateUserName = Common.CurrentLoginUserInfo.EmployeeName; // entity.EditUserID = Common.CurrentLoginUserInfo.EmployeeID; // entity.EditUserName = Common.CurrentLoginUserInfo.EmployeeName; // audit.XmlObject = DataObjectToXml<T_OA_HOUSEINFOISSUANCE>.ObjListToXml(IssuanceObj, "OA"); // audit.Submit(); // } //} /// <summary> /// 提交审核完成 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void audit_AuditCompleted(object sender, SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs e) { auditResult = e.Result; switch (auditResult) { case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing: //todo 审核中 SumbitCompleted(); break; case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Cancel: //todo 取消 Cancel(); break; case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful: //todo 终审通过 SumbitCompleted(); break; case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail: //todo 审核不通过 SumbitCompleted(); break; case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Error: //todo 审核异常 HandError(); break; } actionFlag = DataActionFlag.SubmitComplete; }
private void InitData() { if (action == Action.Add) { IssuanceObj = new T_OA_HOUSEINFOISSUANCE(); IssuanceObj.CHECKSTATE = ((int)CheckStates.UnSubmit).ToString(); } else { if (action == Action.AUDIT) { txtContent.HideControls(); actionFlag = DataActionFlag.SubmitComplete; } if (action == Action.ReSubmit) { IssuanceObj.CHECKSTATE = ((int)CheckStates.UnSubmit).ToString(); } client.GetIssuanceListByIdAsync(issuanceID); } if (action == Action.Read || action == Action.AUDIT) { SetReadOnly(); } }
/// <summary> /// 获取借阅记录 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void client_GetLendingListByLendingIdCompleted(object sender, GetLendingListByLendingIdCompletedEventArgs e) { try { if (e.Result != null) { lendingArchives = e.Result.ToList().First(); if (actionFlag == DataActionFlag.SubmitFlow) { actionFlag = DataActionFlag.SubmitComplete; //SumbitFlow(); return; } if (action == Action.AUDIT) { //audit.XmlObject = DataObjectToXml<T_OA_LENDARCHIVES>.ObjListToXml(lendingArchives, "OA"); } this.txtTitle.Text = lendingArchives.T_OA_ARCHIVES.ARCHIVESTITLE; this.txtCompany.Text = Utility.GetCompanyName(lendingArchives.T_OA_ARCHIVES.COMPANYID); this.sDate.SelectedDate = lendingArchives.STARTDATE; this.eDate.SelectedDate = lendingArchives.PLANENDDATE; //BindAduitInfo(); if (FormTypeAction == FormTypes.Resubmit) { lendingArchives.CHECKSTATE = Convert.ToInt32(CheckStates.UnSubmit).ToString(); } RefreshUI(RefreshedTypes.AuditInfo); RefreshUI(RefreshedTypes.All); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.Message.ToString()); } }
private void InitData() { try { if (actions == FormTypes.New) { CtappObj = new T_OA_CONTRACTAPP(); CtappObj.CHECKSTATE = ((int)CheckStates.UnSubmit).ToString(); this.StartTime.Text = DateTime.Now.ToShortDateString(); this.EndTime.Text = DateTime.Now.ToShortDateString(); } else { if (actions == FormTypes.Audit) { actionFlag = DataActionFlag.SubmitComplete; } cmsfc.GetContractApprovalByIdAsync(ctappID); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.Message.ToString()); } }
private void SumbitCompleted() { fbCtr.Order.ORDERID = organ.ORGANIZATIONID; try { if (organ != null) { actionFlag = DataActionFlag.SubmitComplete;//审核动作完成 organ.UPDATEDATE = DateTime.Now; organ.UPDATEUSERID = Common.CurrentLoginUserInfo.EmployeeID; organ.UPDATEUSERNAME = Common.CurrentLoginUserInfo.EmployeeName; if (action == FormTypes.Audit) //如果是审核状态则将不重复提交 { IsAudit = false; } switch (auditResult) { case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing: organ.CHECKSTATE = Utility.GetCheckState(CheckStates.Approving); if (FBControlIsUsed) { fbCtr.Save(SMT.SaaS.FrameworkUI.CheckStates.Approving); //审核中 add 2010-6-21 } break; case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful: organ.CHECKSTATE = Utility.GetCheckState(CheckStates.Approved); if (FBControlIsUsed) { fbCtr.Save(SMT.SaaS.FrameworkUI.CheckStates.Approved); //审核通过 add 2010-6-21 } SetLicenseMasterValid(); break; case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail: organ.CHECKSTATE = Utility.GetCheckState(CheckStates.UnApproved); if (FBControlIsUsed) { fbCtr.Save(SMT.SaaS.FrameworkUI.CheckStates.UnApproved); //审核不通过 add 2010-6-21 } break; } if (!FBControlIsUsed) { client.UpdateOrganAsync(organ, licenseMatserObjList, "Edit"); } //fbCtr.Save(SMT.SaaS.FrameworkUI.CheckStates.); //client.UpdateOrganAsync(organ,licenseMatserObjList); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), ex.ToString()); } }
//public V_LicenseBorrow LicenseViewObj //{ // get { return licenseViewObj; } // set // { // //this.DataContext = value; // licenseViewObj = value; // } //} #region 初始化 public LicenseBorrowForm(Action action, string licenseID, string checkState) { InitializeComponent(); this.action = action; this.licenseID = licenseID; this.checkState = checkState; InitEvent(); switch (action) { case Action.Add: formTypeAction = FormTypes.New; break; case Action.Edit: formTypeAction = FormTypes.Edit; break; case Action.AUDIT: formTypeAction = FormTypes.Audit; break; case Action.Read: formTypeAction = FormTypes.Browse; break; case Action.ReSubmit: formTypeAction = FormTypes.Resubmit; break; } if (action != Action.Add) { if (action == Action.AUDIT) { actionFlag = DataActionFlag.SubmitComplete; } client.GetLicenseBorrowListByIdAsync(licenseID); } if (checkState != ((int)CheckStates.UnSubmit).ToString() && checkState != ((int)CheckStates.UnApproved).ToString() && checkState != "5") //只有未提交和未通过才能修改 { if (action != Action.Add) { SetReadOnly(); } } else { if (action != Action.AUDIT && action != Action.Read) { SetToolBar(); } if (action == Action.Read) { SetReadOnly(); } } }
/// <summary> /// View调用的Loaded /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void Form_Loaded(object sender, RoutedEventArgs e) { switch (action) { case Action.Add: FormTypeAction = FormTypes.New; break; case Action.Edit: FormTypeAction = FormTypes.Edit; break; case Action.AUDIT: FormTypeAction = FormTypes.Audit; break; case Action.Read: FormTypeAction = FormTypes.Browse; break; case Action.ReSubmit: FormTypeAction = FormTypes.Resubmit; break; } InitEvent(); this.sDate.SelectedDate = DateTime.Now; this.eDate.SelectedDate = DateTime.Now.AddDays(7); if (action != Action.Add) { if (action == Action.AUDIT) { actionFlag = DataActionFlag.SubmitComplete; } InitData(); } else { lendingArchives = new T_OA_LENDARCHIVES(); lendingArchives.CHECKSTATE = ((int)CheckStates.UnSubmit).ToString(); } if (checkstate != ((int)CheckStates.UnSubmit).ToString() && checkstate != ((int)CheckStates.UnApproved).ToString()) //只有未提交和未通过才能修改 { if (action != Action.Add) { SetReadOnly(); } } else { if (action != Action.AUDIT || action != Action.Read) { SetToolBar(); } } }
//public V_LicenseBorrow LicenseViewObj //{ // get { return licenseViewObj; } // set // { // //this.DataContext = value; // licenseViewObj = value; // } //} #region 初始化 public LicenseBorrowForm(Action action, string licenseID, string checkState) { InitializeComponent(); this.action = action; this.licenseID = licenseID; this.checkState = checkState; InitEvent(); switch (action) { case Action.Add: formTypeAction = FormTypes.New; break; case Action.Edit: formTypeAction = FormTypes.Edit; break; case Action.AUDIT: formTypeAction = FormTypes.Audit; break; case Action.Read: formTypeAction = FormTypes.Browse; break; case Action.ReSubmit: formTypeAction = FormTypes.Resubmit; break; } if (action != Action.Add) { if (action == Action.AUDIT) { actionFlag = DataActionFlag.SubmitComplete; } client.GetLicenseBorrowListByIdAsync(licenseID); } if (checkState != ((int)CheckStates.UnSubmit).ToString() && checkState != ((int)CheckStates.UnApproved).ToString() && checkState !="5") //只有未提交和未通过才能修改 { if (action != Action.Add) { SetReadOnly(); } } else { if (action != Action.AUDIT && action != Action.Read) { SetToolBar(); } if (action == Action.Read) { SetReadOnly(); } } }
/// <summary> /// View调用的Loaded /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void Form_Loaded(object sender, RoutedEventArgs e) { switch (action) { case Action.Add: FormTypeAction = FormTypes.New; break; case Action.Edit: FormTypeAction = FormTypes.Edit; break; case Action.AUDIT: FormTypeAction = FormTypes.Audit; break; case Action.Read: FormTypeAction = FormTypes.Browse; break; case Action.ReSubmit: FormTypeAction = FormTypes.Resubmit; break; } InitEvent(); this.sDate.SelectedDate = DateTime.Now; this.eDate.SelectedDate = DateTime.Now.AddDays(7); if (action != Action.Add) { if (action == Action.AUDIT) { actionFlag = DataActionFlag.SubmitComplete; } InitData(); } else { lendingArchives = new T_OA_LENDARCHIVES(); lendingArchives.CHECKSTATE = ((int)CheckStates.UnSubmit).ToString(); } if (checkstate != ((int)CheckStates.UnSubmit).ToString() && checkstate != ((int)CheckStates.UnApproved).ToString()) //只有未提交和未通过才能修改 { if (action != Action.Add) { SetReadOnly(); } } else { if (action != Action.AUDIT || action != Action.Read) { SetToolBar(); } } }
/// <summary> /// 获取记录 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void client_GetLicenseBorrowListByIdCompleted(object sender, GetLicenseBorrowListByIdCompletedEventArgs e) { try { if (e.Error == null) { if (e.Result != null) { //licenseViewObj = e.Result; LicenseObj = e.Result; if (action == Action.AUDIT) { //audit.XmlObject = DataObjectToXml<T_OA_LICENSEUSER>.ObjListToXml(LicenseObj, "OA"); } if (actionFlag == DataActionFlag.SubmitFlow) { actionFlag = DataActionFlag.SubmitComplete; //SumbitFlow(); return; } //T_OA_LICENSEMASTER licenseMaster = new T_OA_LICENSEMASTER(); //licenseMaster.LICENSENAME = licenseViewObj.LicenseName; this.txtLicenseName.Text = LicenseObj.T_OA_LICENSEMASTER.LICENSENAME; //BindAduitInfo(); RefreshUI(RefreshedTypes.AuditInfo); RefreshUI(RefreshedTypes.All); } } else { //HtmlPage.Window.Alert(e.Error.ToString()); //RefreshUI(RefreshedTypes.ProgressBar); Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message); } } catch (Exception ex) { //HtmlPage.Window.Alert(ex.ToString()); //RefreshUI(RefreshedTypes.ProgressBar); Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString()); } }
private void InitData() { if (action == Action.Add) { this.sDate.SelectedDate = DateTime.Now; this.eDate.SelectedDate = DateTime.Now.AddYears(1); houseInfo = new T_OA_HOUSEINFO(); houseList = new V_HouseHireList(); hireApp = new T_OA_HIREAPP(); hireApp.CHECKSTATE = ((int)CheckStates.UnSubmit).ToString(); } else { if (action == Action.AUDIT) { actionFlag = DataActionFlag.SubmitComplete; } client.GetHireAppByIDAsync(hireAppID); } if (checkState != ((int)CheckStates.UnSubmit).ToString() && checkState != ((int)CheckStates.UnApproved).ToString() && FromFormFlag == "0") //只有未提交和未通过才能修改 { if (action != Action.Add) { SetReadOnly(); } } else { SetToolBar(); } //if (action == Action.Return) //{ // //SetReturnBar(); // this.sDate.IsEnabled = false; // this.eDate.IsEnabled = false; // this.rbtPay.IsEnabled = false; // this.RbtShared.IsEnabled = false; // this.rbtWhole.IsEnabled = false; // this.RbtCash.IsEnabled = false; //} }
private void InitData() { try { if (actions == FormTypes.New) { InfoObj = new T_OA_WELFAREDISTRIBUTEUNDO(); InfoObj.CHECKSTATE = ((int)CheckStates.UnSubmit).ToString(); } else { if (actions == FormTypes.Audit) { actionFlag = DataActionFlag.SubmitComplete; } BenefitsAdministration.GetWelfarePaymentWithdrawalByIdAsync(beingWithdrawnId); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.Message.ToString()); } }
private void InitData() { try { if (actions == FormTypes.New) { InfoObj = new T_OA_WELFAREMASERT(); InfoObj.CHECKSTATE = ((int)CheckStates.UnSubmit).ToString(); } else { if (actions == FormTypes.Audit) { actionFlag = DataActionFlag.SubmitComplete; } wssc.GetWelfareByIdAsync(welfareInfoID); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.Message.ToString()); } }
/// <summary> /// 引擎调用的Loaded /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void ArchivesLendingForm_Loaded(object sender, RoutedEventArgs e) { InitEvent(); this.sDate.SelectedDate = DateTime.Now; this.eDate.SelectedDate = DateTime.Now.AddDays(7); this.checkstate = "1"; this.action = Action.AUDIT; FormTypeAction = FormTypes.Audit; if (action == Action.AUDIT) { actionFlag = DataActionFlag.SubmitComplete; } InitData(); if (checkstate != ((int)CheckStates.UnSubmit).ToString() && checkstate != ((int)CheckStates.UnApproved).ToString()) //只有未提交和未通过才能修改 { SetReadOnly(); } else { SetToolBar(); } }
//void ctrFile_Event_AllFilesFinished(object sender, SMT.SaaS.FrameworkUI.FileUpload.FileCountEventArgs e) //{ // RefreshUI(RefreshedTypes.HideProgressBar); //} #endregion #region InitData private void InitData() { if (actions == FormTypes.New) { ContractViewObj = new T_OA_CONTRACTVIEW(); ContractViewObj.CHECKSTATE = ((int)CheckStates.UnSubmit).ToString(); client.GetEmployeeDetailByIDAsync(Common.CurrentLoginUserInfo.EmployeeID);//获取当期用户信息 this.txtFile.Visibility = Visibility.Collapsed; this.ContractText.Visibility = Visibility.Collapsed; this.txtContractText.Visibility = Visibility.Collapsed; } else { if (actions == FormTypes.Audit) { actionFlag = DataActionFlag.SubmitComplete; } cmsfc.GetContractViewByIdAsync(contractViewID); } if (actions == FormTypes.Audit || actions == FormTypes.Edit) { this.txtContractText.Visibility = Visibility.Collapsed; this.txtFile.Visibility = Visibility.Collapsed; this.ContractText.Visibility = Visibility.Collapsed; //this.ctrFile.Visibility = Visibility.Collapsed; } if (actions == FormTypes.Browse) { this.txtContractText.Visibility = Visibility.Collapsed; this.ContractText.Visibility = Visibility.Collapsed; this.txtTELL.IsReadOnly = true; } }
/// <summary> /// 引擎调用的Loaded /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void ArchivesLendingForm_Loaded(object sender, RoutedEventArgs e) { InitEvent(); this.sDate.SelectedDate = DateTime.Now; this.eDate.SelectedDate = DateTime.Now.AddDays(7); this.checkstate = "1"; this.action = Action.AUDIT; FormTypeAction = FormTypes.Audit; if (action == Action.AUDIT) { actionFlag = DataActionFlag.SubmitComplete; } InitData(); if (checkstate != ((int)CheckStates.UnSubmit).ToString() && checkstate != ((int)CheckStates.UnApproved).ToString()) //只有未提交和未通过才能修改 { SetReadOnly(); } else { SetToolBar(); } }
/// <summary> /// 获取借阅记录 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void client_GetLendingListByLendingIdCompleted(object sender, GetLendingListByLendingIdCompletedEventArgs e) { try { if (e.Result != null) { lendingArchives = e.Result.ToList().First(); if (actionFlag == DataActionFlag.SubmitFlow) { actionFlag = DataActionFlag.SubmitComplete; //SumbitFlow(); return; } if (action == Action.AUDIT) { //audit.XmlObject = DataObjectToXml<T_OA_LENDARCHIVES>.ObjListToXml(lendingArchives, "OA"); } this.txtTitle.Text = lendingArchives.T_OA_ARCHIVES.ARCHIVESTITLE; this.txtCompany.Text = Utility.GetCompanyName(lendingArchives.T_OA_ARCHIVES.COMPANYID); this.sDate.SelectedDate = lendingArchives.STARTDATE; this.eDate.SelectedDate = lendingArchives.PLANENDDATE; //BindAduitInfo(); if (FormTypeAction == FormTypes.Resubmit) { lendingArchives.CHECKSTATE = Convert.ToInt32(CheckStates.UnSubmit).ToString(); } RefreshUI(RefreshedTypes.AuditInfo); RefreshUI(RefreshedTypes.All); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.Message.ToString()); } }
public void SumbitAudit() { actionFlag = DataActionFlag.SubmitFlow; Save(); }
private void InitData() { try { if (actions == FormTypes.New) { InfoObj = new T_OA_WELFAREDISTRIBUTEUNDO(); InfoObj.CHECKSTATE = ((int)CheckStates.UnSubmit).ToString(); } else { if (actions == FormTypes.Audit) { actionFlag = DataActionFlag.SubmitComplete; } BenefitsAdministration.GetWelfarePaymentWithdrawalByIdAsync(beingWithdrawnId); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.Message.ToString()); } }
public void SubmitAuditToClose() { actionFlag = DataActionFlag.SubmitFlow; Save(); }
private void SumbitCompleted() { fbCtr.ExtensionalOrder.ORDERID = organ.ORGANIZATIONID; try { if (organ != null) { actionFlag = DataActionFlag.SubmitComplete;//审核动作完成 organ.UPDATEDATE = DateTime.Now; organ.UPDATEUSERID = Common.CurrentLoginUserInfo.EmployeeID; organ.UPDATEUSERNAME = Common.CurrentLoginUserInfo.EmployeeName; if (action == FormTypes.Audit) //如果是审核状态则将不重复提交 { IsAudit = false; } switch (auditResult) { case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing: organ.CHECKSTATE = Utility.GetCheckState(CheckStates.Approving); if (FBControlIsUsed) fbCtr.Save(SMT.SaaS.FrameworkUI.CheckStates.Approving); //审核中 add 2010-6-21 break; case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful: organ.CHECKSTATE = Utility.GetCheckState(CheckStates.Approved); if (FBControlIsUsed) fbCtr.Save(SMT.SaaS.FrameworkUI.CheckStates.Approved); //审核通过 add 2010-6-21 SetLicenseMasterValid(); break; case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail: organ.CHECKSTATE = Utility.GetCheckState(CheckStates.UnApproved); if (FBControlIsUsed) fbCtr.Save(SMT.SaaS.FrameworkUI.CheckStates.UnApproved); //审核不通过 add 2010-6-21 break; } if (!FBControlIsUsed) { client.UpdateOrganAsync(organ, licenseMatserObjList,"Edit"); } //fbCtr.Save(SMT.SaaS.FrameworkUI.CheckStates.); //client.UpdateOrganAsync(organ,licenseMatserObjList); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), ex.ToString()); } }
private void InitData() { try { if (actions == FormTypes.New) { InfoObj = new T_OA_WELFAREMASERT(); InfoObj.CHECKSTATE = ((int)CheckStates.UnSubmit).ToString(); } else { if (actions == FormTypes.Audit) { actionFlag = DataActionFlag.SubmitComplete; } wssc.GetWelfareByIdAsync(welfareInfoID); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.Message.ToString()); } }
/// <summary> /// 获取记录 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void client_GetLicenseBorrowListByIdCompleted(object sender, GetLicenseBorrowListByIdCompletedEventArgs e) { try { if (e.Error == null) { if (e.Result != null) { //licenseViewObj = e.Result; LicenseObj = e.Result; if (action == Action.AUDIT) { //audit.XmlObject = DataObjectToXml<T_OA_LICENSEUSER>.ObjListToXml(LicenseObj, "OA"); } if (actionFlag == DataActionFlag.SubmitFlow) { actionFlag = DataActionFlag.SubmitComplete; //SumbitFlow(); return; } //T_OA_LICENSEMASTER licenseMaster = new T_OA_LICENSEMASTER(); //licenseMaster.LICENSENAME = licenseViewObj.LicenseName; this.txtLicenseName.Text = LicenseObj.T_OA_LICENSEMASTER.LICENSENAME; //BindAduitInfo(); RefreshUI(RefreshedTypes.AuditInfo); RefreshUI(RefreshedTypes.All); } } else { //HtmlPage.Window.Alert(e.Error.ToString()); //RefreshUI(RefreshedTypes.ProgressBar); Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message); } } catch (Exception ex) { //HtmlPage.Window.Alert(ex.ToString()); //RefreshUI(RefreshedTypes.ProgressBar); Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString()); } }
private void InitEvent() { client = new SmtOADocumentAdminClient(); client.AddLicenseBorrowCompleted += new EventHandler<AddLicenseBorrowCompletedEventArgs>(client_AddLicenseBorrowCompleted); client.GetLicenseBorrowListByIdCompleted += new EventHandler<GetLicenseBorrowListByIdCompletedEventArgs>(client_GetLicenseBorrowListByIdCompleted); client.UpdateLicenseBorrowCompleted += new EventHandler<UpdateLicenseBorrowCompletedEventArgs>(client_UpdateLicenseBorrowCompleted); //audit.AuditCompleted += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_AuditCompleted); //audit.Auditing += new EventHandler<SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs>(audit_Auditing); if (action == Action.Add) { //LicenseViewObj = new V_LicenseBorrow(); //LicenseViewObj.licenseUser = new T_OA_LICENSEUSER(); LicenseObj = new T_OA_LICENSEUSER(); licenseObj.STARTDATE = DateTime.Now; licenseObj.ENDDATE = DateTime.Now.AddDays(7); //this.SumbitButton.Visibility = Visibility.Collapsed; //licenseObj = new T_OA_LICENSEUSER(); } else { if (action == Action.AUDIT) { actionFlag = DataActionFlag.SubmitComplete; } client.GetLicenseBorrowListByIdAsync(licenseID); } }
//public void BindAduitInfo() //{ // SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity = this.audit.AuditEntity; // entity.ModelCode = "houseHireApp"; // entity.FormID = hireApp.HIREAPPID; // entity.CreateCompanyID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; // entity.CreateDepartmentID = Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID; // entity.CreatePostID = Common.CurrentLoginUserInfo.UserPosts[0].PostID; // entity.CreateUserID = Common.CurrentLoginUserInfo.EmployeeID; // entity.CreateUserName = Common.CurrentLoginUserInfo.EmployeeName; // entity.EditUserID = Common.CurrentLoginUserInfo.EmployeeID; // entity.EditUserName = Common.CurrentLoginUserInfo.EmployeeName; // audit.BindingData(); //} //public void SumbitFlow() //{ // if (hireApp != null) // { // SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity = this.audit.AuditEntity; // entity.ModelCode = "houseHireApp";//"archivesLending";T_HR_COMPANY // entity.FormID = hireApp.HIREAPPID; //"0b6c8e80-69fa-4f54-810a-1f0d339c6603";//Company.COMPANYID; // entity.CreateCompanyID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; // entity.CreateDepartmentID = Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID; // entity.CreatePostID = Common.CurrentLoginUserInfo.UserPosts[0].PostID; // entity.CreateUserID = Common.CurrentLoginUserInfo.EmployeeID; // entity.CreateUserName = Common.CurrentLoginUserInfo.EmployeeName; // entity.EditUserID = Common.CurrentLoginUserInfo.EmployeeID; // entity.EditUserName = Common.CurrentLoginUserInfo.EmployeeName; // //audit.XmlObject = DataObjectToXml<T_OA_HIREAPP>.ObjListToXml(hireApp, "OA"); // //audit.Submit(); // } //} /// <summary> /// 提交审核完成 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void audit_AuditCompleted(object sender, SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs e) { auditResult = e.Result; actionFlag = DataActionFlag.SubmitComplete; switch (auditResult) { case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing: //todo 审核中 SumbitCompleted(); break; case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Cancel: //todo 取消 Cancel(); break; case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful: //todo 终审通过 SumbitCompleted(); break; case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail: //todo 审核不通过 SumbitCompleted(); break; case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Error: //todo 审核异常 HandError(); break; } }
private void InitData() { if (action == Action.Add) { IssuanceObj = new T_OA_HOUSEINFOISSUANCE(); IssuanceObj.CHECKSTATE = ((int)CheckStates.UnSubmit).ToString(); } else { if (action == Action.AUDIT) { txtContent.HideControls(); actionFlag = DataActionFlag.SubmitComplete; } if(action == Action.ReSubmit) IssuanceObj.CHECKSTATE = ((int)CheckStates.UnSubmit).ToString(); client.GetIssuanceListByIdAsync(issuanceID); } if (action == Action.Read || action == Action.AUDIT) { SetReadOnly(); } }
private void InitData() { try { if (actions == FormTypes.New) { CtappObj = new T_OA_CONTRACTAPP(); CtappObj.CHECKSTATE = ((int)CheckStates.UnSubmit).ToString(); this.StartTime.Text = DateTime.Now.ToShortDateString(); this.EndTime.Text = DateTime.Now.ToShortDateString(); } else { if (actions == FormTypes.Audit) { actionFlag = DataActionFlag.SubmitComplete; } cmsfc.GetContractApprovalByIdAsync(ctappID); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.Message.ToString()); } }
public OrganAddForm(FormTypes action, string organID, string checkstate) { InitializeComponent(); InitEvent(); licenseMatserObjList = new ObservableCollection<T_OA_LICENSEMASTER>(); //licenseMatserObjOrginList = new List<T_OA_LICENSEMASTER>(); this.action = action; this.checkstate = checkstate; this.organID = organID; if (checkstate != ((int)CheckStates.UnSubmit).ToString() && checkstate != ((int)CheckStates.UnApproved).ToString()) //只有未提交和未通过才能修改 { //SetReadOnly(); } else { if (action == FormTypes.Audit || action == FormTypes.Browse) { if (action == FormTypes.Browse) { SetReadOnly(); } else { SetToolBar(); } } } SetFBControl(); if (action == FormTypes.New) { Organ = new T_OA_ORGANIZATION(); organ.CHECKSTATE = ((int)CheckStates.UnSubmit).ToString(); InitFBControl(); } else { txtOrganCode.IsEnabled = false; if (action == FormTypes.Audit) { actionFlag = DataActionFlag.SubmitComplete; } InitData(); //this.txtOrganCode.IsReadOnly = true; } }
private void InitData() { if (action == Action.Add) { this.sDate.SelectedDate = DateTime.Now; this.eDate.SelectedDate = DateTime.Now.AddYears(1); houseInfo = new T_OA_HOUSEINFO(); houseList = new V_HouseHireList(); hireApp = new T_OA_HIREAPP(); hireApp.CHECKSTATE = ((int)CheckStates.UnSubmit).ToString(); } else { if (action == Action.AUDIT) { actionFlag = DataActionFlag.SubmitComplete; } client.GetHireAppByIDAsync(hireAppID); } if (checkState != ((int)CheckStates.UnSubmit).ToString() && checkState != ((int)CheckStates.UnApproved).ToString() && FromFormFlag == "0") //只有未提交和未通过才能修改 { if (action != Action.Add) { SetReadOnly(); } } else { SetToolBar(); } //if (action == Action.Return) //{ // //SetReturnBar(); // this.sDate.IsEnabled = false; // this.eDate.IsEnabled = false; // this.rbtPay.IsEnabled = false; // this.RbtShared.IsEnabled = false; // this.rbtWhole.IsEnabled = false; // this.RbtCash.IsEnabled = false; //} }
public void SubmitAuditToClose() { actionFlag = DataActionFlag.SubmitFlow; Save(); }
public void SumbitAudit() { actionFlag = DataActionFlag.SubmitFlow; Save(); }
//引擎使用 public LicenseBorrowForm(FormTypes actionFormtype, string licenseID) { InitializeComponent(); this.action = Action.AUDIT; formTypeAction = FormTypes.Audit; this.licenseID = licenseID; this.checkState = ((int)CheckStates.Approving).ToString(); InitEvent(); if (action != Action.Add) { if (action == Action.AUDIT) { actionFlag = DataActionFlag.SubmitComplete; } client.GetLicenseBorrowListByIdAsync(licenseID); } if (checkState != ((int)CheckStates.UnSubmit).ToString() && checkState != ((int)CheckStates.UnApproved).ToString()) //只有未提交和未通过才能修改 { SetReadOnly(); } else { SetToolBar(); } }