//审核
        private void btnAudit_Click(object sender, RoutedEventArgs e)
        {

            if (Licenseuser != null)
            {
                LicenseBorrowForm form = new LicenseBorrowForm(Action.AUDIT, Licenseuser.LICENSEUSERID, checkState);
                EntityBrowser browser = new EntityBrowser(form);
                browser.FormType = FormTypes.Audit;
                browser.HideLeftMenu();
                browser.MinWidth = 450;
                browser.MinHeight = 370;
                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
            }
            else
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "AUDIT"), Utility.GetResourceStr("CONFIRMBUTTON"));
            }



            //ObservableCollection<string> licenseID = GridHelper.GetSelectItem(dgLicense, "myChkBox", Action.Edit);
            //if (licenseID == null || licenseID.Count < 1)
            //{
            //    //HtmlPage.Window.Alert("请先选择需要修改的外借记录!");

            //    //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "EDIT"));

            //    ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "AUDIT"), Utility.GetResourceStr("CONFIRMBUTTON"));
            //}
            //else
            //{
            //    //CFrmLicenseBorrowAdd addFrm = new CFrmLicenseBorrowAdd(Action.AUDIT, licenseID[0], checkState);
            //    ////addFrm.Title = "修改外借记录";
            //    //addFrm.Title = Utility.GetResourceStr("AUDITTITLE", "LICENSELENDING");
            //    //addFrm.Show();
            //    //addFrm.ReloadDataEvent += new BaseForm.refreshGridView(addFrm_ReloadDataEvent);

            //    LicenseBorrowForm form = new LicenseBorrowForm(Action.AUDIT, licenseID[0], checkState);
            //    EntityBrowser browser = new EntityBrowser(form);
            //    browser.HideLeftMenu();
            //    browser.MinWidth = 450;
            //    browser.MinHeight = 370;
            //    browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            //    browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });

            //}
        }    
 void btnReSubmit_Click(object sender, RoutedEventArgs e)
 {
     if (Licenseuser != null)
     {
         if (Licenseuser.CHECKSTATE == "0" || Licenseuser.CHECKSTATE == "3")
         {
             LicenseBorrowForm form = new LicenseBorrowForm(Action.ReSubmit, Licenseuser.LICENSEUSERID, checkState);
             EntityBrowser browser = new EntityBrowser(form);
             browser.FormType = FormTypes.Resubmit;
             browser.HideLeftMenu();
             browser.MinWidth = 450;
             browser.MinHeight = 370;
             browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
             browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
         }
         else
         {
             Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("FRMLICENSEBORROWMANAGEMENTNOTEDIT"));
         }
     }
     else
     {
         ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "EDIT"), Utility.GetResourceStr("CONFIRMBUTTON"));
     }
 }
        //新增
        private void btnNew_Click(object sender, RoutedEventArgs e)
        {
            //CFrmLicenseBorrowAdd addFrm = new CFrmLicenseBorrowAdd(Action.Add, null, checkState);         
            ////addFrm = new CFrmLendingAdd(Action.Add, "");
            //addFrm.Title = Utility.GetResourceStr("ADDTITLE", "LICENSELENDING");
            ////addFrm.Title = "新增外借记录";
            //addFrm.Show();
            //addFrm.ReloadDataEvent += new BaseForm.refreshGridView(addFrm_ReloadDataEvent);

            LicenseBorrowForm form = new LicenseBorrowForm(Action.Add,"",checkState);
            EntityBrowser browser = new EntityBrowser(form);
            browser.HideLeftMenu();
            browser.MinWidth = 450;
            browser.MinHeight = 370;
            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
        }
 void BtnView_Click(object sender, RoutedEventArgs e)
 {
     if (Licenseuser != null)
     {
         LicenseBorrowForm form = new LicenseBorrowForm(Action.Read, Licenseuser.LICENSEUSERID, checkState);
         EntityBrowser browser = new EntityBrowser(form);
         browser.FormType = FormTypes.Browse;
         browser.HideLeftMenu();
         browser.MinWidth = 450;
         browser.MinHeight = 370;
         browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
         browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
     }
     else
     {
         ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "EDIT"), Utility.GetResourceStr("CONFIRMBUTTON"));
     }
 }
Beispiel #5
0
 void BtnView_Click(object sender, RoutedEventArgs e)
 {
     if (Licensemaster != null)
     {
         LicenseDetailForm form = new LicenseDetailForm(FormTypes.Browse,Licensemaster.LICENSEMASTERID);
         EntityBrowser browser = new EntityBrowser(form);
         //browser.AuditCtrl.Visibility = Visibility.Collapsed;
         browser.FormType = FormTypes.Browse;
         browser.HideLeftMenu();
         browser.MinHeight = 550;
         browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
         browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);
     }
     else
     {
         ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "EDIT"), Utility.GetResourceStr("CONFIRMBUTTON"));
     }
 }
Beispiel #6
0
        private void ChooseLicense()
        {
            form = new ChooseLicenseForm();
            EntityBrowser browser = new EntityBrowser(form);
            //browser.AuditCtrl.Visibility = Visibility.Collapsed;
            browser.HideLeftMenu();

            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
        }
Beispiel #7
0
        /// <summary>
        /// 参与调查
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void btnSurveyDetail_Click(object sender, RoutedEventArgs e)
        {
            if (dgSurveying.SelectedItems.Count == 1)
            {
                T_OA_REQUIREDISTRIBUTE distribute = this.dgSurveying.SelectedItem as T_OA_REQUIREDISTRIBUTE;

                string ID = distribute.T_OA_REQUIRE.REQUIREID;
                JoinSurveyingForm form = new JoinSurveyingForm(FormTypes.New, ID);
                EntityBrowser browser = new EntityBrowser(form);
                browser.HideLeftMenu();
                form.actionType = FormTypes.New;
                browser.FormType = FormTypes.New;
                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
            }
            else
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("WARING"), "警告", "请选择一条要查看的数据");
            }
        }