public AreaAllowanceForm(FormTypes type, string allowanceID, string areaID, string postlevel) { InitializeComponent(); InitParas(); this.areaID = areaID; FormType = type; PostLevel = postlevel; AllowancelID = allowanceID; this.Loaded += new RoutedEventHandler(AreaAllowanceForm_Loaded); //if (string.IsNullOrEmpty(allowanceID)) //{ // allowance = new T_HR_AREAALLOWANCE(); // allowance.AREAALLOWANCEID = Guid.NewGuid().ToString(); // allowance.T_HR_AREADIFFERENCE = new T_HR_AREADIFFERENCE(); // allowance.T_HR_AREADIFFERENCE.AREADIFFERENCEID = areaID; // allowance.CREATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; // allowance.CREATEDATE = System.DateTime.Now; // //areacity.UPDATEDATE = System.DateTime.Now; // //areacity.UPDATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; // cbArea.IsEnabled = false; // this.DataContext = allowance; //} //else //{ // cbArea.IsEnabled = false; // cbPostLevel.IsEnabled = false; // client.GetAreaAllowanceByIDAsync(allowanceID); //} }
// 1s 冉龙军 // 待完善 public PerformanceComplain(FormTypes type, string complainId) { InitializeComponent(); FormType = type; InitPara(); }
void client_EditRequireresultCompleted(object sender, EditRequireresultCompletedEventArgs e) { try { if (e.Error == null) { if (e.Result) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), "成功", " 保存成功", MessageIcon.Error); actionType = FormTypes.Edit; EntityBrowser entBrowser = this.FindParentByType<EntityBrowser>(); entBrowser.FormType = FormTypes.Edit; RefreshUI(RefreshedTypes.AuditInfo); RefreshUI(RefreshedTypes.All); } else { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), "失败", "保存失败", MessageIcon.Error); } } else { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), "失败", "保存失败", MessageIcon.Error); } } catch (Exception ex) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), "失败", "保存失败", MessageIcon.Error); } loadbar.Stop(); }
bool isAuditing = false;//用于重提提交后判断页面状态 #endregion #region 构造函数 /// <summary> /// 无参构造函数,供平台中待办新建调用 /// </summary> public ApprovalForm_aud() { InitializeComponent(); operationType = FormTypes.New; approvalid = ""; this.Loaded += new RoutedEventHandler(ApprovalForm_aud_Loaded); }
public EmployeeSurveyChildWindow(FormTypes actionTypes, string masterID) { this.masterID = masterID; this.actionTypes = actionTypes; InitializeComponent(); this.Loaded += new RoutedEventHandler(EmployeeSurveyChildWindow_Loaded); }
public ImportSetMasterForm(FormTypes type, string strID) { InitializeComponent(); FormType = type; importSetID = strID; InitEnvent(strID); }
public HouseInfoIssuranceForm(Action action, string issuanceID, string checkstate) { this.action = action; 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; } this.issuanceID = issuanceID; this.checkstate = checkstate; InitializeComponent(); InitEvent(); InitData(); }
public SalaryStandardForm(FormTypes type, string standardID) { InitializeComponent(); FormType = type; StandardID = standardID; this.Loaded += new RoutedEventHandler(SalaryStandardForm_Loaded); }
public ApplicationsForContractsPages(FormTypes action, string applicationsId) { InitializeComponent(); this.Loaded += (sender, args) => { this.actions = action; this.ctappID = applicationsId; InitEvent(); InitData(); if (action == FormTypes.New) { cmsfc.GetContractTypeNameInfosToComboxAsync(); //this.audit.Visibility = Visibility.Collapsed; } if (action == FormTypes.Audit || action == FormTypes.Browse) { ShieldedControl(); } //ctrFile.SystemName = "OA"; //ctrFile.ModelName = "Contract"; //ctrFile.InitBtn(Visibility.Collapsed, Visibility.Collapsed); //ctrFile.Event_AllFilesFinished += // new EventHandler<SMT.SaaS.FrameworkUI.FileUpload.FileCountEventArgs>( // ctrFile_Event_AllFilesFinished); }; }
List<string> ListDict = new List<string>(); //字典列表 #endregion #region 构造函数 /// <summary> /// 构造函数,定义WCF事件及初始化变量 /// </summary> /// <param name="strBorrowApplyID">个人费用申请ID,添加为空</param> /// <param name="FormTypesAction">操作类型:添加、修改、查看、审核、重新提交</param> public BorrowAppForm(FormTypes ActionType, string strBorrowApplyID) { CheckConverter(); InitializeComponent(); this.types = ActionType; borID = strBorrowApplyID; this.FormTypesAction = ActionType; this.Loaded += (sender, args) => { BorrowAppForm_Loaded(sender, args); WcfRegister();//Wcf事件注册 }; //ctrFile.SystemName = "FB"; //ctrFile.ModelName = "BorrowApp"; //ctrFile.EntityEditor = this; //if (FormTypesAction == FormTypes.Audit || FormTypesAction == FormTypes.Browse) //{ // ctrFile.FileState = SMT.SaaS.FrameworkUI.FileUpload.Constants.FileStates.FileBrowse; // ctrFile.InitBtn(Visibility.Collapsed, Visibility.Collapsed); // ctrFile.Load_fileData(borID, this); //} //else //{ // ctrFile.InitBtn(Visibility.Visible, Visibility.Collapsed); // if (!string.IsNullOrEmpty(borID)) // { // ctrFile.Load_fileData(borID, this); // } //} }
public EmployeeSurveyApp_aud(FormTypes operationType, string SendDocID) { InitializeComponent(); this.types = operationType; this.requireId = SendDocID; this.Loaded += new RoutedEventHandler(EmployeeSurveyApp_aud_Loaded); }
public SysPermMenuForms(FormTypes type) { InitializeComponent(); ////TODO:加操作用户信息 FormType = type; //InitParas(""); }
public GroupInfo(FormTypes type, string randomGroupID) { FormType = type; InitializeComponent(); SetDescEnable(false); InitPara(randomGroupID); }
public SalarySolutionAssignForm(FormTypes type, string solutionID) { InitializeComponent(); //InitParas(); FormType = type; SalarySolutionAssignID = solutionID; this.Loaded += new RoutedEventHandler(SalarySolutionAssignForm_Loaded); //BindAssignObjectType(); //if (string.IsNullOrEmpty(solutionID)) //{ // SalarySolutionAssignView = new V_SALARYSOLUTIONASSIGN(); // SalarySolutionAssignView.SalarySolutionAssign = new T_HR_SALARYSOLUTIONASSIGN(); // SalarySolutionAssignView.SalarySolutionAssign.SALARYSOLUTIONASSIGNID = Guid.NewGuid().ToString(); // SalarySolutionAssignView.SalarySolutionAssign.CREATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; // SalarySolutionAssignView.SalarySolutionAssign.CREATEDATE = System.DateTime.Now; // SalarySolutionAssignView.SalarySolutionAssign.UPDATEDATE = System.DateTime.Now; // SalarySolutionAssignView.SalarySolutionAssign.UPDATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; // SalarySolutionAssignView.SalarySolutionAssign.OWNERCOMPANYID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; // SalarySolutionAssignView.SalarySolutionAssign.OWNERDEPARTMENTID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID; // SalarySolutionAssignView.SalarySolutionAssign.OWNERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; // SalarySolutionAssignView.SalarySolutionAssign.OWNERPOSTID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].PostID; // SalarySolutionAssignView.SalarySolutionAssign.CHECKSTATE = Convert.ToInt32(CheckStates.UnSubmit).ToString(); // this.DataContext = SalarySolutionAssignView.SalarySolutionAssign; // BindAssignObjectLookup(); //} //else //{ // client.GetSalarySolutionAssignViewByIDAsync(solutionID); //} }
public Payment(FormTypes type, string ID) { InitializeComponent(); GetEntityLogo("T_HR_EMPLOYEESALARYRECORD"); InitPara(); msgCloseID = ID; }
public EmployeeSurvey_add(FormTypes type) { InitializeComponent(); this.types = type; this.Loaded += new RoutedEventHandler(EmployeeSurvey_add_Loaded); }
/// <summary> /// 构造函数 /// </summary> /// <param name="type"></param> /// <param name="postID"></param> public PostDictionaryForms(FormTypes type, string postID) { InitializeComponent(); FormType = type; postdictionaryid = postID; InitParas(postID); }
public ApprovalTempletForm(FormTypes ActionType, string SendDocID) { InitializeComponent(); operationType = ActionType; approvalid = SendDocID; this.Loaded += new RoutedEventHandler(ApprovalForm_aud_Loaded); }
//平台调用 public VehicleUseAppForm_aud(FormTypes operationType, string SendDocID) { InitializeComponent(); _VM.UpdateVehicleUseAppCompleted += new EventHandler<UpdateVehicleUseAppCompletedEventArgs>(vehicleUseAppManager_UpdateVehicleUseAppCompleted); _VM.Get_VehicleUseAppCompleted += new EventHandler<Get_VehicleUseAppCompletedEventArgs>(Get_VehicleUseAppCompleted); _VM.Get_VehicleUseAppAsync(SendDocID); }
public JoinSurveyingForm(FormTypes actionTypes, string requireID) { InitializeComponent(); this.requireID = requireID; this.actionTypes = actionTypes; InitEvent(); }
public LeaveTypeSetForm(FormTypes formtype, string strLeaveTypeSetID) { FormType = formtype; LeaveTypeSetID = strLeaveTypeSetID; InitializeComponent(); this.Loaded += new RoutedEventHandler(LeaveTypeSetForm_Loaded); }
public SysUserForms(FormTypes type) { InitializeComponent(); ////TODO:加操作用户信息 FormType = type; InitParas(""); }
public EmployeeSurveyDistributeChildWindow(FormTypes actionTypes, string key) { InitializeComponent(); this.actionTypes = actionTypes; this.key = key; this.Loaded += new RoutedEventHandler(EmployeeSurveyDistributeChildWindow_Loaded); }
public SalaryLevelForm(FormTypes type, string ID) { InitializeComponent(); this.Loaded += new RoutedEventHandler(SalaryLevelForm_Loaded); FormType = type; salaryLevelID = ID; //if (postlevelDistinction != null) //{ // distinction = postlevelDistinction; // this.DataContext = distinction; // BindCombox(); //} //InitParas(); //if (string.IsNullOrEmpty(ID)) //{ // salaryLevel = new T_HR_SALARYLEVEL(); // salaryLevel.SALARYLEVELID = Guid.NewGuid().ToString(); // this.DataContext = salaryLevel; //} //else //{ // client.GetSalaryLevelByIDAsync(ID); //} }
public static void InitFileLoad(string strApplicationID, FormTypes action, FileUpLoad.FileControl control, bool AllowDelete) { SMT.FileUpLoad.Classes.UserConfig uc = new SMT.FileUpLoad.Classes.UserConfig(); uc.CompanyCode = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; uc.SystemCode = "WF"; uc.ModelCode = "FLOW_FLOWRECORDDETAIL_T"; uc.UserID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; uc.ApplicationID = strApplicationID; uc.NotShowThumbailChckBox = true; if (action == FormTypes.Browse || action == FormTypes.Audit) { uc.NotShowUploadButton = true; uc.NotShowDeleteButton = true; uc.NotAllowDelete = true; } if (!AllowDelete) { uc.NotShowDeleteButton = true; } uc.Multiselect = true; uc.Filter = "所有文件 (*.*)|*.*"; //uc.Filter = "图片文件(*.jpg,*.gif,*.bmp)|*.jpg;*.gif;*.bmp"; uc.MaxConcurrentUploads = 5; uc.MaxSize = "20.MB"; uc.CreateName = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeName; uc.PageSize = 20; control.Init(uc); }
public PensionAlarmSetForm(FormTypes type, string pensionAlarmSetID) { InitializeComponent(); FormType = type; this.pensionAlarmSetID = pensionAlarmSetID; InitParas(pensionAlarmSetID); }
/// <summary> /// 2010-5-20 by liujx /// </summary> /// <param name="action">动作 增、删、改、查、审核</param> /// <param name="hireAppID">申请ID</param> /// <param name="checkState">状态</param> /// <param name="FromFlag">来源标记</param> public HouseHireAppForm(Action action, string hireAppID, string checkState, string FromFlag) { InitializeComponent(); FromFormFlag = FromFlag; this.action = action; 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; } this.hireAppID = hireAppID; this.checkState = checkState; InitEvent(); InitData(); }
public AreaForm(FormTypes type, string areaID, string solutionsId) { InitializeComponent(); TravelSolutionsId = solutionsId; InitParas(); FormType = type; if (string.IsNullOrEmpty(areaID)) { area = new T_OA_AREADIFFERENCE(); area.AREADIFFERENCEID = Guid.NewGuid().ToString(); area.CREATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; area.CREATEDATE = System.DateTime.Now; area.UPDATEDATE = System.DateTime.Now; area.UPDATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; this.DataContext = area; } else { client.GetAreaCategoryByIDAsync(areaID); } }
public DepartmentDictionaryForms(FormTypes type, string depID) { InitializeComponent(); FormType = type; this.departmentdictid = depID; InitParas(depID); }
public SatisfactionSurveyChildWindow(FormTypes actionType, string masterId) { InitializeComponent(); this.actionType = actionType; this.masterId = masterId; this.Loaded += new RoutedEventHandler(SatisfactionSurveyChildWindow_Loaded); }
private void ResetFormStyle() { DisableBeforeButton(currentButton); lblTitleBar.Text = "HOME"; panelTitleBar.BackColor = Color.FromArgb(0, 150, 136); panelLogo.BackColor = Color.FromArgb(39, 39, 58); currentButton = null; btnCloseChildForm.Visible = false; activeFormType = FormTypes.None; }
public EmployeeSurveyDistribute_add(FormTypes type) { InitializeComponent(); this.types = type; _VM.Add_ESurveyResultCompleted += new EventHandler<Add_ESurveyResultCompletedEventArgs>(Add_ESurveyResultCompleted); _VM.Upd_ESurveyResultCompleted += new EventHandler<Upd_ESurveyResultCompletedEventArgs>(Upd_ESurveyResultCompleted); //发布 DocDistrbuteClient.DocDistrbuteBatchAddCompleted += new EventHandler<DocDistrbuteBatchAddCompletedEventArgs>(DocDistrbuteClient_DocDistrbuteBatchAddCompleted); // DocDistrbuteClient.DocDistrbuteInfoUpdateCompleted += new EventHandler<DocDistrbuteInfoUpdateCompletedEventArgs>(DocDistrbuteInfoUpdateCompleted); }
public AttendanceDeductDetailForm(FormTypes formtype, string strDeductDetailID, T_HR_ATTENDANCEDEDUCTMASTER entAttendanceDeductMaster) { FormType = formtype; DeductDetailID = strDeductDetailID; AttendanceDeductMaster = entAttendanceDeductMaster; InitializeComponent(); RegisterEvents(); this.Loaded += new RoutedEventHandler(AttendanceDeductDetailForm_Loaded); }
public MaintenanceRecordForm_upd(FormTypes action, string SendDocID) { InitializeComponent(); this.actions = action; _VM.Upd_VMRecordCompleted += new EventHandler <Upd_VMRecordCompletedEventArgs>(Upd_VMRecordCompleted); _VM.Get_VMRecordCompleted += new EventHandler <Get_VMRecordCompletedEventArgs>(_VM_Get_VMRecordCompleted); _VM.Get_VMRecordAsync(SendDocID); fbCtr.SaveCompleted += new EventHandler <SMT.SaaS.FrameworkUI.FBControls.ChargeApplyControl.SaveCompletedArgs>(fbCtr_SaveCompleted); this.Loaded += new RoutedEventHandler(LayoutRoot_Loaded); }
bool IsRoleEntityMenuChange = false;//是否对菜单进行了赋权 #endregion #region 构造函数 /// <summary> /// 构造函数 /// </summary> /// <param name="action"></param> /// <param name="StrID"></param> public UserRoleApplyForm(FormTypes action, string StrID) { InitializeComponent(); permClient = new PermissionServiceClient(); tmpRoleID = StrID; personnelClient = new PersonnelServiceClient(); operationType = action; InitEvent(); this.Loaded += new RoutedEventHandler(UserRoleApplyForm_Loaded); }
//引擎调用 2010-7-10 public HouseHireAppForm(FormTypes actionformtype, string hireAppID) { InitializeComponent(); FromFormFlag = "0"; this.action = Action.AUDIT; this.hireAppID = hireAppID; this.checkState = "1"; InitEvent(); InitData(); }
public EmployeeCheckForm(FormTypes type, string strID) { InitializeComponent(); FormType = type; checkid = strID; InitParas(strID); //ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), type.ToString(), // Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); }
public ConserVationRecord_upd(FormTypes type, string SendDocID) { InitializeComponent(); this.types = type; _VM.Upd_VCRecordCompleted += new EventHandler <Upd_VCRecordCompletedEventArgs>(Upd_VCRecordCompleted); _VM.Get_VCRecordCompleted += new EventHandler <Get_VCRecordCompletedEventArgs>(Get_VCRecordCompleted); _VM.Get_VCRecordAsync(SendDocID); fbCtr.SaveCompleted += new EventHandler <SMT.SaaS.FrameworkUI.FBControls.ChargeApplyControl.SaveCompletedArgs>(fbCtr_SaveCompleted); this.Loaded += new RoutedEventHandler(LayoutRoot_Loaded); }
public EntityMenuCustomPermForms(FormTypes type, string CustPermID) { InitializeComponent(); FormType = type; InitParas(CustPermID); if (type == FormTypes.Browse) { UnEnableFormControl(); } }
public SysRoleForms(FormTypes type, string roleID) { InitializeComponent(); FormType = type; InitParas(roleID); if (type == FormTypes.Browse) { UnEnableFormControl(); } }
public CFrmAccidentRecordManager(FormTypes type) { InitializeComponent(); this.types = type; vehicleManager.UpdateAccidentRecordCompleted += new EventHandler <UpdateAccidentRecordCompletedEventArgs>(vehicleManager_UpdateAccidentRecordCompleted); vehicleManager.AddAccidentRecordCompleted += new EventHandler <AddAccidentRecordCompletedEventArgs>(vehicleManager_AddAccidentRecordCompleted); vehicleManager.GetVehicleInfoListCompleted += new EventHandler <GetVehicleInfoListCompletedEventArgs>(vehicleInfoManager_GetVehicleInfoListCompleted); this.Loaded += new RoutedEventHandler(CFrmAccidentRecordManager_Loaded); }
public SatisfactionDistribute_add(FormTypes type) { InitializeComponent(); this.types = type; _VM.Add_SSurveyResultCompleted += new EventHandler <Add_SSurveyResultCompletedEventArgs>(Add_SSurveyResultCompleted); _VM.Upd_SSurveyResultCompleted += new EventHandler <Upd_SSurveyResultCompletedEventArgs>(Upd_SSurveyResultCompleted); //发布 DocDistrbuteClient.DocDistrbuteBatchAddCompleted += new EventHandler <DocDistrbuteBatchAddCompletedEventArgs>(DocDistrbuteClient_DocDistrbuteBatchAddCompleted); permissionClient.GetSysDictionaryByFatherIDCompleted += new EventHandler <GetSysDictionaryByFatherIDCompletedEventArgs>(GetSysDictionaryByFatherIDCompleted); }
public EmployeeSurveyDistribute_aud(FormTypes operationType, string SendDocID) { InitializeComponent(); this.types = operationType; _VM.Upd_ESurveyResultCompleted += new EventHandler <Upd_ESurveyResultCompletedEventArgs>(Upd_ESurveyResultCompleted); //发布 DocDistrbuteClient.GetDocDistrbuteInfosCompleted += new EventHandler <GetDocDistrbuteInfosCompletedEventArgs>(DocDistrbuteClient_GetDocDistrbuteInfosCompleted); _VM.Get_ESurveyResultCompleted += new EventHandler <Get_ESurveyResultCompletedEventArgs>(Get_ESurveyResultCompleted); _VM.Get_ESurveyResultAsync(SendDocID); }
public VehicleDispatchRecord_upd(FormTypes type, string SendDocID) { InitializeComponent(); this.types = type; this.vdrId = SendDocID; _VM.Upd_VDRecordCompleted += new EventHandler <Upd_VDRecordCompletedEventArgs>(Upd_VDRecordCompleted); _VM.Get_VDRecordCompleted += new EventHandler <Get_VDRecordCompletedEventArgs>(Get_VDRecordCompleted); _VM.Get_VDRecordAsync(SendDocID); fbCtr.SaveCompleted += new EventHandler <SMT.SaaS.FrameworkUI.FBControls.ChargeApplyControl.SaveCompletedArgs>(fbCtr_SaveCompleted); }
public MaintenanceRecordForm_aud(FormTypes operationType, string SendDocID) { InitializeComponent(); this.types = operationType; _VM.Upd_VMRecordCompleted += new EventHandler <Upd_VMRecordCompletedEventArgs>(Upd_VMRecordCompleted); _VM.Get_VMRecordCompleted += new EventHandler <Get_VMRecordCompletedEventArgs>(Get_VMRecordCompleted); fbCtr.SaveCompleted += new EventHandler <SMT.SaaS.FrameworkUI.FBControls.ChargeApplyControl.SaveCompletedArgs>(fbCtr_SaveCompleted); _VM.Get_VMRecordAsync(SendDocID); Load_Data(); }
/// <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 VehicleInfo_upd(FormTypes formtype) { InitializeComponent(); _VM.UpdateVehicleCompleted += new EventHandler <UpdateVehicleCompletedEventArgs>(UpdateVehicleCompleted); _VM.Get_VICardCompleted += new EventHandler <Get_VICardCompletedEventArgs>(Get_VICardCompleted); _VM.Del_VICardCompleted += new EventHandler <Del_VICardCompletedEventArgs>(Del_VICardCompleted); _VM.Save_VICardCompleted += new EventHandler <Save_VICardCompletedEventArgs>(Save_VICardCompleted); tmpformtype = formtype; this.Loaded += new RoutedEventHandler(VehicleInfo_upd_Loaded); }
//门户调用审核使用 public HouseInfoIssuranceForm(FormTypes typeaction, string issuanceID) { this.action = Action.AUDIT; formTypeAction = FormTypes.Audit; this.issuanceID = issuanceID; //this.checkstate = checkstate; InitializeComponent(); InitEvent(); InitData(); }
public SatisfactionApp_upd(FormTypes type) { InitializeComponent(); this.types = type; _VM.Upd_SSurveyAppCompleted += new EventHandler <Upd_SSurveyAppCompletedEventArgs>(Upd_SSurveyAppCompleted); //发布 DocDistrbuteClient.GetDocDistrbuteInfosCompleted += new EventHandler <GetDocDistrbuteInfosCompletedEventArgs>(DocDistrbuteClient_GetDocDistrbuteInfosCompleted); //DocDistrbuteClient.DocDistrbuteInfoUpdateCompleted += new EventHandler<DocDistrbuteInfoUpdateCompletedEventArgs>(DocDistrbuteInfoUpdateCompleted); DocDistrbuteClient.DocDistrbuteInfoUpdateByBatchCompleted += new EventHandler <DocDistrbuteInfoUpdateByBatchCompletedEventArgs>(DocDistrbuteClient_DocDistrbuteInfoUpdateByBatchCompleted); permissionClient.GetSysDictionaryByFatherIDCompleted += new EventHandler <GetSysDictionaryByFatherIDCompletedEventArgs>(GetSysDictionaryByFatherIDCompleted); }
public VehicleDispatchForm_aud(FormTypes operationType, string SendDocID) { InitializeComponent(); this.vdId = SendDocID; this.types = operationType; _VM.UpdateVehicleDispatchAndDetailCompleted += new EventHandler <UpdateVehicleDispatchAndDetailCompletedEventArgs>(vehicleDispatchManagr_UpdateVehicleDispatchAndDetailCompleted); _VM.GetVehicleInfoListCompleted += new EventHandler <GetVehicleInfoListCompletedEventArgs>(GetVehicleInfoListCompleted); _VM.Get_ByParentIDCompleted += new EventHandler <Get_ByParentIDCompletedEventArgs>(Get_ByParentIDCompleted); _VM.Get_VDInfoCompleted += new EventHandler <Get_VDInfoCompletedEventArgs>(Get_VDInfoCompleted); _VM.Get_VDInfoAsync(vdId); }
private void NotShow(FormTypes type) { if (type != FormTypes.Edit && type != FormTypes.Resubmit) { lkEmployeeName.IsEnabled = false; combProtectType.IsEnabled = false; numYear.IsEnabled = false; numMonth.IsEnabled = false; DtGrid.IsReadOnly = true; } }
public ViewContractApplicationControl(FormTypes action, string contractViewId) { actions = action; InitializeComponent(); this.actions = action; this.contractViewID = contractViewId; InitEvent(); InitData(); //audit.Visibility = Visibility.Visible; //ctrFile.InitBtn(Visibility.Collapsed, Visibility.Collapsed); }
void client_AddSatisfactionDistributeCompleted(object sender, AddSatisfactionDistributeCompletedEventArgs e) { RefreshUI(RefreshedTypes.HideProgressBar); if (e.Result && e.Error != null) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ADDFAILED"), Utility.GetResourceStr("ADDFAILED"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); return; } actionType = FormTypes.Edit; ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("ADDSUCCESSED"), Utility.GetResourceStr("ADDDATASUCCESSED"), Utility.GetResourceStr("CONFIRM")); }
public SysPermissionForms(FormTypes formType, string strID) { InitializeComponent(); FormType = formType; InitParas(strID); if (formType == FormTypes.Browse) { UnEnableFormControl(); } }
public static Dictionary <string, Type> GetFieldList(FormTypes formType) { switch (formType) { case FormTypes.PaceForecasterFormula: return(new Dictionary <string, Type>() { { PaceForecasterFormatFields.BCR, Type.GetType("System.Decimal") }, { PaceForecasterFormatFields.BSR, Type.GetType("System.Decimal") }, { PaceForecasterFormatFields.CP, Type.GetType("System.Decimal") }, { PaceForecasterFormatFields.CR, Type.GetType("System.Decimal") }, { PaceForecasterFormatFields.CRF, Type.GetType("System.Decimal") }, { PaceForecasterFormatFields.DIS, Type.GetType("System.String") }, { PaceForecasterFormatFields.DSLR, Type.GetType("System.Decimal") }, { PaceForecasterFormatFields.DSR, Type.GetType("System.Decimal") }, { PaceForecasterFormatFields.DST, Type.GetType("System.Decimal") }, { PaceForecasterFormatFields.Distance, Type.GetType("System.Int32") }, { PaceForecasterFormatFields.KeyTrainerStatCategory1, Type.GetType("System.String") }, { PaceForecasterFormatFields.KeyTrainerStatCategory2, Type.GetType("System.String") }, { PaceForecasterFormatFields.KeyTrainerStatCategory3, Type.GetType("System.String") }, { PaceForecasterFormatFields.MDC, Type.GetType("System.Decimal") }, { PaceForecasterFormatFields.MJS, Type.GetType("System.Decimal") }, { PaceForecasterFormatFields.LP, Type.GetType("System.Decimal") }, { PaceForecasterFormatFields.LR, Type.GetType("System.Decimal") }, { PaceForecasterFormatFields.ML, Type.GetType("System.Decimal") }, { PaceForecasterFormatFields.MUD, Type.GetType("System.Decimal") }, { PaceForecasterFormatFields.Pace, Type.GetType("System.Int32") }, { PaceForecasterFormatFields.PP, Type.GetType("System.Int32") }, { PaceForecasterFormatFields.PPWR, Type.GetType("System.Decimal") }, { PaceForecasterFormatFields.RQ, Type.GetType("System.Int32") }, { PaceForecasterFormatFields.RBC, Type.GetType("System.Decimal") }, { PaceForecasterFormatFields.TB, Type.GetType("System.Decimal") }, { PaceForecasterFormatFields.TRF, Type.GetType("System.Decimal") }, { PaceForecasterFormatFields.TRK, Type.GetType("System.String") }, { PaceForecasterFormatFields.TSR, Type.GetType("System.Decimal") }, { PaceForecasterFormatFields.TotalPace, Type.GetType("System.Decimal") }, { PaceForecasterFormatFields.RnkWrkrsPercentage1, Type.GetType("System.Boolean") }, { PaceForecasterFormatFields.RnkWrkrsPercentage2, Type.GetType("System.Boolean") }, { PaceForecasterFormatFields.Workout, Type.GetType("System.Int32") } }); case FormTypes.TurfFormula: return(new Dictionary <string, Type>() { { TurfFormulaFormatFields.SR, Type.GetType("System.Decimal") }, { TurfFormulaFormatFields.TurfPedigree, Type.GetType("System.Decimal") }, { TurfFormulaFormatFields.TFW, Type.GetType("System.Decimal") }, { TurfFormulaFormatFields.E2_1, Type.GetType("System.Decimal") }, { TurfFormulaFormatFields.E2_2, Type.GetType("System.Decimal") }, }); } return(new Dictionary <string, Type>()); }
/// <summary> /// 门户创建待审批的单据(通过引擎) 2010-6-24 /// </summary> /// <param name="FormID"></param> /// <param name="FormName"></param> public static void CreateFormFromEngine(string StrFormID, string StrFormName, string StrFormType) { FormID = StrFormID; FormName = StrFormName; FormType = StrFormType; //ChecResource(); FormTypes CurrentAction = FormTypes.Resubmit; if (!string.IsNullOrEmpty(FormType)) { switch (FormType.ToUpper()) { case "AUDIT": CurrentAction = FormTypes.Audit; break; case "ADD": CurrentAction = FormTypes.New; break; case "EDIT": CurrentAction = FormTypes.Edit; break; case "VIEW": CurrentAction = FormTypes.Browse; break; case "RESUBMIT": CurrentAction = FormTypes.Resubmit; break; } } Type t = Type.GetType(FormName); // SMT.SaaS.OA.UI.UserControls..BusinessApplicationsForm Object[] parameters = new Object[2]; // 定义构造函数需要的参数 parameters[0] = CurrentAction; parameters[1] = FormID; // "5d572f2d-c0e4-49ca-960e-6bd45bfb97a9"; object form = Activator.CreateInstance(t, parameters); if (form != null) { EntityBrowser entBrowser = new EntityBrowser(form); entBrowser.FormType = CurrentAction; //MessageBox.Show(CurrentAction.ToString() +" " +FormType+ FormID); entBrowser.Show <string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { }, true, FormID); } //CheckPermission(FormName); }
public RecordList(FormTypes formtype, int iBudgetRecordType, int iYear, int iMonthStart, int iMonthEnd, V_PerExecutionList entRev) { CheckConverter(); InitializeComponent(); FormType = formtype; BudgetRecordType = iBudgetRecordType; BudgetYear = iYear; BudgetMonthStart = iMonthStart; BudgetMonthEnd = iMonthEnd; entPerExecution = entRev; InitPage(); }
public SatisfactionDistribute_aud(FormTypes operationType, string SendDocID) { InitializeComponent(); this.sId = SendDocID; this.types = operationType; _VM.Upd_SSurveyResultCompleted += new EventHandler <Upd_SSurveyResultCompletedEventArgs>(Upd_SSurveyResultCompleted); //发布 DocDistrbuteClient.GetDocDistrbuteInfosCompleted += new EventHandler <GetDocDistrbuteInfosCompletedEventArgs>(DocDistrbuteClient_GetDocDistrbuteInfosCompleted); permissionClient.GetSysDictionaryByFatherIDCompleted += new EventHandler <GetSysDictionaryByFatherIDCompletedEventArgs>(GetSysDictionaryByFatherIDCompleted); _VM.Get_SSurveyResultCompleted += new EventHandler <Get_SSurveyResultCompletedEventArgs>(Get_SSurveyResultCompleted); Load_Data(); }
public MaintenanceAppForm_aud(FormTypes operationType, string SendDocID) { InitializeComponent(); this.actions = operationType; this.mappId = SendDocID; _VM.GetVehicleInfoListCompleted += new EventHandler <GetVehicleInfoListCompletedEventArgs>(vehicleInfoManager_GetVehicleInfoListCompleted); _VM.UpdateMaintenanceAppCompleted += new EventHandler <UpdateMaintenanceAppCompletedEventArgs>(cvmWS_UpdateMaintenanceAppCompleted); _VM.Get_VMAppCompleted += new EventHandler <Get_VMAppCompletedEventArgs>(Get_VMAppCompleted); Load_Data(); fbCtr.SaveCompleted += new EventHandler <SMT.SaaS.FrameworkUI.FBControls.ChargeApplyControl.SaveCompletedArgs>(fbCtr_SaveCompleted); }
protected internal virtual void parseFormField(Element formField, BpmnParse bpmnParse, ExpressionManager expressionManager) { FormFieldHandler formFieldHandler = new FormFieldHandler(); // parse Id string id = formField.attribute("id"); if (string.ReferenceEquals(id, null) || id.Length == 0) { bpmnParse.addError("attribute id must be set for FormFieldGroup and must have a non-empty value", formField); } else { formFieldHandler.Id = id; } if (id.Equals(businessKeyFieldId)) { formFieldHandler.BusinessKey = true; } // parse name string name = formField.attribute("label"); if (!string.ReferenceEquals(name, null)) { Expression nameExpression = expressionManager.createExpression(name); formFieldHandler.Label = nameExpression; } // parse properties parseProperties(formField, formFieldHandler, bpmnParse, expressionManager); // parse validation parseValidation(formField, formFieldHandler, bpmnParse, expressionManager); // parse type FormTypes formTypes = FormTypes; AbstractFormFieldType formType = formTypes.parseFormPropertyType(formField, bpmnParse); formFieldHandler.setType(formType); // parse default value string defaultValue = formField.attribute("defaultValue"); if (!string.ReferenceEquals(defaultValue, null)) { Expression defaultValueExpression = expressionManager.createExpression(defaultValue); formFieldHandler.DefaultValueExpression = defaultValueExpression; } formFieldHandlers.Add(formFieldHandler); }