Esempio n. 1
0
 void BtnView_Click(object sender, RoutedEventArgs e)
 {
     if (Lendarchives != null)
     {
         ArchivesLendingForm form = new ArchivesLendingForm(Action.Read, Lendarchives.LENDARCHIVESID, "2");// 归还为审核通过 所以传值 2
         EntityBrowser browser = new EntityBrowser(form);
         browser.FormType = FormTypes.Browse;
         browser.MinWidth = 445;
         browser.MinHeight = 310;
         browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
         browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
         Lendarchives = null;
     }
     else
     {
         ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "VIEW"), Utility.GetResourceStr("CONFIRMBUTTON"));
     }
 }
Esempio n. 2
0
        private void btnAudit_Click(object sender, RoutedEventArgs e)
        {
            if (Lendarchives != null)
            {
                ArchivesLendingForm form = new ArchivesLendingForm(Action.AUDIT, Lendarchives.LENDARCHIVESID, checkState);
                EntityBrowser browser = new EntityBrowser(form);
                browser.FormType = FormTypes.Audit;
                browser.MinWidth = 495;
                browser.MinHeight = 270;
                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"));
            }


        }
Esempio n. 3
0
        //修改按钮事件
        private void btnAlt_Click(object sender, RoutedEventArgs e)
        {
            ObservableCollection<string> lendingID = GridHelper.GetSelectItem(dgArchives,"myChkBox",Action.Edit);
            if (lendingID == null || lendingID.Count == 0)
            {
                //HtmlPage.Window.Alert("请先选择需要修改的借阅记录!");
                //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "EDIT"));
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTDATAALERT"), Utility.GetResourceStr("CONFIRMBUTTON"));

            }
            else
            {
                ArchivesLendingForm form = new ArchivesLendingForm(Action.Edit, lendingID[0], checkState);
                EntityBrowser browser = new EntityBrowser(form);
                browser.MinWidth = 495;
                browser.MinHeight = 270;
                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });

                //AddFrm = new CFrmLendingAdd(Action.Edit, lendingID[0], checkState);
                //AddFrm.Title = Utility.GetResourceStr("EDITTITLE","LICENSELENDING"); 
                //AddFrm.Show();
                //AddFrm.ReloadDataEvent += new BaseForm.refreshGridView(AddFrm_ReloadDataEvent);
            }
        }
Esempio n. 4
0
        private void btnNew_Click(object sender, RoutedEventArgs e)
        {
            //AddFrm = new CFrmLendingAdd(Action.Add, "", checkState);
            ////AddFrm.Title = "新增借阅记录";
            //AddFrm.Title = Utility.GetResourceStr("ADDTITLE", "ARCHIVELENDING"); 
            //AddFrm.Show();
            //AddFrm.ReloadDataEvent += new BaseForm.refreshGridView(AddFrm_ReloadDataEvent);

            ArchivesLendingForm form = new ArchivesLendingForm(Action.Add, "", checkState);
            EntityBrowser browser = new EntityBrowser(form);
            browser.MinWidth = 400;
            browser.MinHeight = 200;
            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
        }        
Esempio n. 5
0
        void btnReSubmit_Click(object sender, RoutedEventArgs e)
        {
            if (Lendarchives != null)
            {
                if (Lendarchives.CHECKSTATE == "2" || Lendarchives.CHECKSTATE == "3")
                {
                    ArchivesLendingForm form = new ArchivesLendingForm(Action.ReSubmit, Lendarchives.LENDARCHIVESID, checkState);
                    EntityBrowser browser = new EntityBrowser(form);
                    browser.FormType = FormTypes.Resubmit;
                    browser.MinWidth = 495;
                    browser.MinHeight = 270;
                    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("ARCHIVELENDINGNOTRESUBMIT"));
                }
            }
            else
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "EDIT"), Utility.GetResourceStr("CONFIRMBUTTON"));
            }

        }