Example #1
0
        void PostDictionaryForms_Loaded(object sender, RoutedEventArgs e)
        {
            #region 新增
            if (FormType == FormTypes.Browse || FormType == FormTypes.Audit)
            {
                EnableControl();
            }
            #endregion
            if (FormType == FormTypes.New)
            {
                PostDictionary = new T_HR_POSTDICTIONARY();
                PostDictionary.POSTDICTIONARYID = Guid.NewGuid().ToString();
                PostDictionary.CHECKSTATE       = Convert.ToInt32(CheckStates.UnSubmit).ToString();
                createUserName = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeName;
                client.GetDepartmentDictionaryAllAsync();
                SetToolBar();
            }
            else
            {
                RefreshUI(RefreshedTypes.ShowProgressBar);
                client.GetPostDictionaryByIdAsync(postdictionaryid);
            }

            //Load事件之后,加载完后获取到父控件
            EntityBrowser entBrowser = this.FindParentByType <EntityBrowser>();
            entBrowser.BtnSaveSubmit.Click -= new RoutedEventHandler(entBrowser.btnSubmit_Click);
            entBrowser.BtnSaveSubmit.Click += new RoutedEventHandler(BtnSaveSubmit_Click);
        }
Example #2
0
        void PostDictionary_Loaded(object sender, RoutedEventArgs e)
        {
            GetEntityLogo("T_HR_POSTDICTIONARY");

            Utility.DisplayGridToolBarButton(ToolBar, "T_HR_POSTDICTIONARY", true);
            //审核状态绑定
            Utility.CbxItemBinder(ToolBar.cbxCheckState, "CHECKSTATE", Convert.ToInt32(CheckStates.All).ToString());
            client.GetDepartmentDictionaryAllAsync();
            // LoadData();
        }
Example #3
0
 public DepartmentHistoryForm(T_HR_DEPARTMENTHISTORY companydepart, string companyName)
 {
     InitializeComponent();
     InitControlEvent();
     Department = companydepart;
     //公司名称
     txtCompanyName.Text = companyName;
     //绑定部门字典
     client.GetDepartmentDictionaryAllAsync();
     this.IsEnabled = false;
 }