Ejemplo n.º 1
0
 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"));
     }
 }
Ejemplo n.º 2
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) => { });
        }
Ejemplo n.º 3
0
        //修改
        private void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            if (Licenseuser != null)
            {
                if (Licenseuser.CHECKSTATE == "0" || Licenseuser.CHECKSTATE == "3")
                {
                    LicenseBorrowForm form    = new LicenseBorrowForm(Action.Edit, Licenseuser.LICENSEUSERID, checkState);
                    EntityBrowser     browser = new EntityBrowser(form);
                    browser.FormType = FormTypes.Edit;
                    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"));
            }


            //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", "EDIT"), Utility.GetResourceStr("CONFIRMBUTTON"));
            //}
            //else
            //{
            //    //CFrmLicenseBorrowAdd addFrm = new CFrmLicenseBorrowAdd(Action.Edit, licenseID[0],checkState);
            //    ////addFrm.Title = "修改外借记录";
            //    //addFrm.Title = Utility.GetResourceStr("EDITTITLE", "LICENSELENDING");
            //    //addFrm.Show();
            //    //addFrm.ReloadDataEvent += new BaseForm.refreshGridView(addFrm_ReloadDataEvent);

            //    LicenseBorrowForm form = new LicenseBorrowForm(Action.Edit, 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) => { });
            //}
        }
Ejemplo n.º 4
0
 //修改
 private void btnEdit_Click(object sender, RoutedEventArgs e)
 {
     if (Licensemaster != null)
     {
         LicenseDetailForm form    = new LicenseDetailForm(FormTypes.Edit, Licensemaster.LICENSEMASTERID);
         EntityBrowser     browser = new EntityBrowser(form);
         //browser.AuditCtrl.Visibility = Visibility.Collapsed;
         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"));
     }
 }
Ejemplo n.º 5
0
        //新增
        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) => { });
        }
Ejemplo n.º 6
0
 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"));
     }
 }
Ejemplo n.º 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"), "警告", "请选择一条要查看的数据");
            }
        }