예제 #1
0
 /// <summary>
 /// 员工年龄分析表
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void _ImgButtonEducationTotal_Click(object sender, RoutedEventArgs e)
 {
     ChartAgeReportFrom formShiftDefine = new ChartAgeReportFrom();
     EntityBrowser entBrowser = new EntityBrowser(formShiftDefine);
     entBrowser.FormType = FormTypes.New;
     entBrowser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
 }
예제 #2
0
 void btnReSubmit_Click(object sender, RoutedEventArgs e)
 {
     if (Meetinginfo != null)
     {
         if (Meetinginfo.meetinginfo.CHECKSTATE == "2" || meetinginfo.meetinginfo.CHECKSTATE == "3")
         {
             MeetingForm form = new MeetingForm(FormTypes.Resubmit, Meetinginfo);
             EntityBrowser browser = new EntityBrowser(form);
             browser.FormType = FormTypes.Resubmit;
             browser.MinHeight = 650;
             browser.MinWidth = 800;
             browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
             browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);
         }
         else
         {
             Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("MEETINGINFONORESUBMIT"));
         }
     }
     else
     {
         ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "SUBMITAUDIT"), Utility.GetResourceStr("CONFIRMBUTTON"));
         return;
     }
 }
예제 #3
0
        void TravelapplicationPage_Click(object sender, RoutedEventArgs e)
        {
            string strLeaveTypeSetID = string.Empty;
            if (DaGr.SelectedItems == null)
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTDATAALERT"));
                return;
            }

            if (DaGr.SelectedItems.Count == 0)
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTDATAALERT"));
                return;
            }

            for (int i = 0; i < DaGr.SelectedItems.Count; i++)
            {
                T_OA_AGENTDATESET ent = DaGr.SelectedItems[i] as T_OA_AGENTDATESET;

                AgentAgingSetForm AddWin = new AgentAgingSetForm(FormTypes.Edit, ent.AGENTDATESETID);
                EntityBrowser browser = new EntityBrowser(AddWin);
                browser.FormType = FormTypes.Edit;
                browser.MinWidth = 550;
                browser.MinHeight = 220;
                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
            }
        }
예제 #4
0
 void btnReSubmit_Click(object sender, RoutedEventArgs e)
 {
     if (Meetingroomapp != null)
     {
         if (Meetingroomapp.roomapp.CHECKSTATE == "2" || Meetingroomapp.roomapp.CHECKSTATE == "3")
         {
             MeetingRoomAppForm AddWin = new MeetingRoomAppForm(FormTypes.Resubmit, Meetingroomapp.roomapp, Meetingroomapp.room);
             EntityBrowser browser = new EntityBrowser(AddWin);
             browser.MinHeight = 350;
             browser.MinWidth = 340;
             browser.ReloadDataEvent += new EntityBrowser.refreshGridView(AddWin_ReloadDataEvent);
             browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
             Meetingroomapp = null;
         }
         else
         {
             Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("MEETINGROOMAPPNOTRESUBMIT"));
         }
     }
     else
     {
         ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTONERECORD"), Utility.GetResourceStr("CONFIRMBUTTON"));
         return;
     }
 }
예제 #5
0
        void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            string strLeaveTypeSetID = string.Empty;
            if (DaGr.SelectedItems == null)
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTDATAALERT"));
                return;
            }

            if (DaGr.SelectedItems.Count == 0)
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTDATAALERT"));
                return;
            }

            T_OA_AGENTSET ent = DaGr.SelectedItems[0] as T_OA_AGENTSET;

            ProxySettingsForm AddWin = new ProxySettingsForm(FormTypes.Edit, ent.AGENTSETID);
            EntityBrowser browser = new EntityBrowser(AddWin);
            browser.FormType = FormTypes.Edit;
            browser.MinWidth = 600;
            browser.MinHeight = 180;
            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
        }
예제 #6
0
 private void Load()
 {
     SetPageColor mode = new SetPageColor();
     EntityBrowser browser = new EntityBrowser(mode);
     mode.MinWidth = 300.0;
     browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
 }
예제 #7
0
 private void btSystemSet_Click(object sender, RoutedEventArgs e)
 {
     SystemParamSetForm paramset = new SystemParamSetForm();
     EntityBrowser browser = new EntityBrowser(paramset);
     paramset.MinHeight = 400;
     browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
 }
예제 #8
0
        void btnReSubmit_Click(object sender, RoutedEventArgs e)
        {
            string strAttendanceSolutionID = string.Empty;
            if (dgEmpLeaveRdList.SelectedItems == null)
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "ReSubmit"));
                return;
            }

            if (dgEmpLeaveRdList.SelectedItems.Count == 0)
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "ReSubmit"));
                return;
            }


            T_HR_EMPLOYEECANCELLEAVE tmpEnt = dgEmpLeaveRdList.SelectedItems[0] as T_HR_EMPLOYEECANCELLEAVE;

            TerminateLeaveForm form = new TerminateLeaveForm(FormTypes.Resubmit, tmpEnt.CANCELLEAVEID);
            EntityBrowser entBrowser = new EntityBrowser(form);
            //Modified by: Sam
            //Date       : 2011-9-6
            //For        : 此处导致打开Form窗体会出现滚动条
            //form.MinWidth = 820;
            //form.MinHeight = 600;
            entBrowser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            entBrowser.FormType = FormTypes.Resubmit;
            entBrowser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });            //BindGrid();
        }
예제 #9
0
 void btnNew_Click(object sender, RoutedEventArgs e)
 {
     Form.SysRolePermForms editForm = new SMT.SaaS.Permission.UI.Form.SysRolePermForms(FormTypes.New);
     EntityBrowser browser = new EntityBrowser(editForm);
     
     browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
     browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) =>{});
 }
예제 #10
0
 void ButtonMainpostChange_Click(object sender, RoutedEventArgs e)
 {
     ExpireRemindSetForm form = new ExpireRemindSetForm();
     EntityBrowser browser = new EntityBrowser(form);
     //  form.MinHeight = 390;
     browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
     browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
 }
예제 #11
0
 void btnImport_Click(object sender, RoutedEventArgs e)
 {
     ImportOrgInfoForm form = new ImportOrgInfoForm();
     EntityBrowser browser = new EntityBrowser(form);
     form.MinHeight = 260;
     form.MinWidth = 400;
     browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
 }
        private void myBtn_Click(object sender, RoutedEventArgs e)
        {
            Button btn = sender as Button;
            btn.IsEnabled = false;
            if (DaGr.SelectedItems == null)
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("SELECTERROR", "OPERATION"), Utility.GetResourceStr("CONFIRMBUTTON"), MessageIcon.Exclamation);
                return;
            }

            if (DaGr.SelectedItems.Count == 0)
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("SELECTERROR", "OPERATION"), Utility.GetResourceStr("CONFIRMBUTTON"), MessageIcon.Exclamation);
                return;
            }

            ///luojie 20120808
            ///未报销按钮的权限控制,同修改按钮
            V_Travelmanagement entrb = new V_Travelmanagement();
            entrb = DaGr.SelectedItems[0] as V_Travelmanagement;
            if (SMT.SaaS.FrameworkUI.Common.Utility.ToolBarButtonOperationPermission(entrb, "T_OA_BUSINESSTRIP", OperationType.Edit, Common.CurrentLoginUserInfo.EmployeeID))
            {
                for (int i = 0; i < DaGr.SelectedItems.Count; i++)
                {
                    V_Travelmanagement ent = new V_Travelmanagement();
                    ent = (DaGr.SelectedItems[i] as V_Travelmanagement);

                    reportid = ent.ReportId;
                    businesstrID = ent.Travelmanagement.BUSINESSTRIPID;
                    travelreimbursementId = ent.TrId;
                    Tdetail = ent.Tdetail;
                }

                if (!string.IsNullOrEmpty(travelreimbursementId) && travelreimbursementId != "空" && Tdetail > 0)//如果已生成报销单,直接打开表单提交
                {
                    WhetherReimbursement = false;
                    BusinessApplicationsForm AddWin = new BusinessApplicationsForm(FormTypes.Edit, businesstrID, WhetherReimbursement);
                    EntityBrowser browser = new EntityBrowser(AddWin);
                    browser.RemoveSMTLoading();
                    browser.FormType = FormTypes.Edit;
                    browser.EntityBrowseToolBar.MaxHeight = 0;
                    browser.MinWidth = 980;
                    browser.MinHeight = 445;
                    browser.TitleContent = "出差申请";
                    browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                    browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
                }
                else
                {
                    ReimbursementSwitch = true;//出差报销开关
                    Travelmanagement.GetTravelmanagementByIdAsync(businesstrID, btn);
                }
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Caution, Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("对不起,您没有修改该用户报销的权限"));
            }
        }
예제 #13
0
 void btnNew_Click(object sender, RoutedEventArgs e)
 {
     AssetPurchaseControl AddWin = new AssetPurchaseControl(Action.Add);
     EntityBrowser browser = new EntityBrowser(AddWin);
     browser.MinWidth = 620;
     browser.MinHeight = 450;
     browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
     browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
 }
예제 #14
0
 //
 void ButtonMainpostChange_Click(object sender, RoutedEventArgs e)
 {
     EmployeePostChangeForm form = new EmployeePostChangeForm(FormTypes.New, "");
     form.isMainPostChanged = true;
     EntityBrowser browser = new EntityBrowser(form);
     //  form.MinHeight = 390;
     browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
     browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
 }
예제 #15
0
    void AttendYearlyBalance_Click(object sender, RoutedEventArgs e)
    {
        CalculateEmployeeAttendanceYearlyForm form = new CalculateEmployeeAttendanceYearlyForm();
        EntityBrowser browser = new EntityBrowser(form);
        form.MinHeight = 280.0;
        browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
        browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
 
    }        
예제 #16
0
 void btnNew_Click(object sender, RoutedEventArgs e)
 {
     ContractPrintUploadControl AddWin = new ContractPrintUploadControl(Action.Print, null);
     EntityBrowser browser = new EntityBrowser(AddWin);
     browser.MinWidth = 580;
     browser.MinHeight = 460;
     browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
     browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
 }
예제 #17
0
 /// <summary>
 /// 新建
 /// </summary>
 private void btnNew_Click(object sender, RoutedEventArgs e)
 {
     EmployeeSurveyChildWindow form = new EmployeeSurveyChildWindow(FormTypes.New,"");
     EntityBrowser browser = new EntityBrowser(form);
     browser.FormType = FormTypes.New;
     browser.MinHeight = 510;
     browser.MinWidth = 650;
     browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
     browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);
 }
예제 #18
0
        void BtnView_Click(object sender, RoutedEventArgs e)
        {
            if (Senddoctype != null)
            {
                DocTypeForm AddWin = new DocTypeForm(Action.Read, Senddoctype);
                EntityBrowser browser = new EntityBrowser(AddWin);
                browser.FormType = FormTypes.Browse;
                browser.MinHeight = 400;
                browser.MinWidth = 600;
                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(AddWin_ReloadDataEvent);
                browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
            }
            else
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "VIEW"), Utility.GetResourceStr("CONFIRMBUTTON"));
                return;
            }


            //T_OA_SENDDOCTYPE DocTypeInfoT = new T_OA_SENDDOCTYPE();

            //if (DaGr.ItemsSource != null)
            //{
            //    foreach (object obj in DaGr.ItemsSource)
            //    {
            //        if (DaGr.Columns[0].GetCellContent(obj) != null)
            //        {
            //            CheckBox cb1 = DaGr.Columns[0].GetCellContent(obj).FindName("myChkBox") as CheckBox; //cb为
            //            if (cb1.IsChecked == true)
            //            {                            
            //                DocTypeInfoT = cb1.Tag as T_OA_SENDDOCTYPE;
            //                break;
            //            }
            //        }
            //    }

            //}

            
            //if (!string.IsNullOrEmpty(DocTypeInfoT.SENDDOCTYPEID))
            //{   
            //    DocTypeForm AddWin = new DocTypeForm(Action.Read, DocTypeInfoT);
            //    EntityBrowser browser = new EntityBrowser(AddWin);
            //    browser.MinHeight = 300;
            //    browser.MinWidth = 320;
            //    browser.ReloadDataEvent += new EntityBrowser.refreshGridView(AddWin_ReloadDataEvent);
            //    browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
            //}
            //else
            //{
            //    //MessageBox.Show("请选择需要修改的公文类型");
            //    ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "EDIT"), Utility.GetResourceStr("CONFIRMBUTTON"));
            //    return;
            //}
        }
예제 #19
0
        void btnNew_Click(object sender, RoutedEventArgs e)
        {
          
                Form.Salary.PostSalaryForm form = new SMT.HRM.UI.Form.Salary.PostSalaryForm(FormTypes.New, null);

                EntityBrowser browser = new EntityBrowser(form);
                form.MinWidth = 570;
                form.MinHeight = 220;
                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
           
        }
예제 #20
0
 private List<T_SYS_ENTITYMENU> SelectedMenus = new List<T_SYS_ENTITYMENU>(); //选择的菜单
 private void SearchBtn_Click(object sender, RoutedEventArgs e)
 {
     string StrType = "";
     T_SYS_DICTIONARY selectDict = new T_SYS_DICTIONARY();
     selectDict = cbxSystemType.SelectedItem as T_SYS_DICTIONARY;
     if (selectDict != null)
         StrType = selectDict.DICTIONARYVALUE.ToString();
     addFrm = new SelectMultiMenu(StrType, SelectedMenus);
     EntityBrowser browser = new EntityBrowser(addFrm);
     browser.FormType = FormTypes.Browse;
     browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
     browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
 }
예제 #21
0
 void BtnView_Click(object sender, RoutedEventArgs e)
 {
     if (Permission == null)
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTRECORDER"),
            Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
         return;
     }
     SysPermissionForms addForm = new SysPermissionForms(FormTypes.Browse, Permission.PERMISSIONID);
     EntityBrowser browser = new EntityBrowser(addForm);
     browser.MinHeight = 350;
     browser.FormType = FormTypes.Browse;
     browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
     browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
 }
예제 #22
0
 void BtnView_Click(object sender, RoutedEventArgs e)
 {
     if (Perm == null)
     {
         ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTDATAALERT"), Utility.GetResourceStr("CONFIRMBUTTON"));
     }
     else
     {
         Form.EntityMenuCustomPermForms editForm = new SMT.SaaS.Permission.UI.Form.EntityMenuCustomPermForms(FormTypes.Browse, Perm.ENTITYMENUCUSTOMPERMID);
         EntityBrowser browser = new EntityBrowser(editForm);
         browser.MinHeight = 450;
         browser.FormType = FormTypes.Browse;
         browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
         browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
     }
 }
예제 #23
0
        private void alterTravelBusiness(V_Travelmanagement ent)
        {
            BusinessApplicationsForm AddWin = new BusinessApplicationsForm(FormTypes.Resubmit, ent.Travelmanagement.BUSINESSTRIPID);
            AddWin.isAlterTrave = true;
            EntityBrowser browser = new EntityBrowser(AddWin);
            browser.RemoveSMTLoading();
            browser.EntityBrowseToolBar.MaxHeight = 0;
            browser.FormType = FormTypes.Resubmit;
            browser.MinWidth = 980;
            browser.MinHeight = 445;
            browser.TitleContent = "出差申请修改行程";
            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            browser.EntityEditor = AddWin;
            browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });

        }
예제 #24
0
 void BtnView_Click(object sender, RoutedEventArgs e)
 {
     ObservableCollection<T_OA_CALENDAR> selCalendarList = GetSelectList();
     if (selCalendarList == null)
     {
         ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "VIEW"), Utility.GetResourceStr("CONFIRMBUTTON"));
         return;
     }
     CFrmCalendarInfo calendarInfo = new CFrmCalendarInfo(selCalendarList[0], "view");
     EntityBrowser browser = new EntityBrowser(calendarInfo);
     browser.FormType = FormTypes.Browse;
     browser.MinWidth = 560;
     browser.MinHeight = 425;
     //browser.ReloadDataEvent += new EntityBrowser.refreshGridView(calendarInfo_OkClick);
     browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { }, true);
 }
예제 #25
0
 void BtnView_Click(object sender, RoutedEventArgs e)
 {
     if (DtGrid.SelectedItems.Count > 0)
     {
         T_HR_CUSTOMGUERDONRECORD tempid = DtGrid.SelectedItems[0] as T_HR_CUSTOMGUERDONRECORD;
         Form.Salary.TemporaryPayrollEditForm form = new SMT.HRM.UI.Form.Salary.TemporaryPayrollEditForm(FormTypes.Browse, tempid.CUSTOMGUERDONRECORDID);
         form.IsEnabled = false;
         EntityBrowser browser = new EntityBrowser(form); 
         form.MinHeight = 250;
         browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
         browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
     }
     else
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "EDIT"));
     }
 }
예제 #26
0
 void BtnView_Click(object sender, RoutedEventArgs e)
 {
     if (Househireapp != null)
     { 
         HouseHireAppForm form = new HouseHireAppForm(Action.Read, Househireapp.houseAppObj.HIREAPPID, checkState, "0");
         EntityBrowser browser = new EntityBrowser(form);
         browser.FormType = FormTypes.Browse;
         browser.MinHeight = 500;
         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", "VIEW"), Utility.GetResourceStr("CONFIRMBUTTON"));
         return;
     }
 }
예제 #27
0
 void btnReSubmit_Click(object sender, RoutedEventArgs e)
 {
     ObservableCollection<T_OA_MAINTENANCEAPP> selectItems = GetSelectList();
     if (selectItems != null)
     {
         MaintenanceAppForm form = new MaintenanceAppForm(FormTypes.Resubmit);
         form.ConserVation = selectItems[0];
         EntityBrowser browser = new EntityBrowser(form);
         browser.FormType = FormTypes.Resubmit;
         browser.MinWidth = 750;
         browser.MinHeight = 600;
         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", "ReSubmit"), Utility.GetResourceStr("CONFIRMBUTTON"));
 }
예제 #28
0
 void btnReSubmit_Click(object sender, RoutedEventArgs e)
 {
     ObservableCollection<T_OA_VEHICLEDISPATCHRECORD> selectItems = GetSelectList();
     if (selectItems != null)
     {
         vehicledispatchrecord = selectItems.FirstOrDefault();
         VehicleDispatchRecord_upd form = new VehicleDispatchRecord_upd(FormTypes.Resubmit, vehicledispatchrecord.VEHICLEDISPATCHRECORDID);
         form.VehicleDispatchRecord = selectItems[0];
         EntityBrowser browser = new EntityBrowser(form);
         browser.FormType = FormTypes.Resubmit;
         browser.MinWidth = 750;
         browser.MinHeight = 600;
         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", "ReSubmit"), Utility.GetResourceStr("CONFIRMBUTTON"));
 }
예제 #29
0
 void btnReSubmit_Click(object sender, RoutedEventArgs e)
 {
     ObservableCollection<T_OA_CONSERVATIONRECORD> selectInfoList = GetSelectList();
     if (selectInfoList != null && selectInfoList.Count > 0)
     {
         conservationrecordInfo = selectInfoList.FirstOrDefault();
         ConserVationRecord_upd form = new ConserVationRecord_upd(FormTypes.Resubmit, conservationrecordInfo.CONSERVATIONRECORDID);
         form.ConserVation = selectInfoList[0];
         EntityBrowser browser = new EntityBrowser(form);
         browser.FormType = FormTypes.Resubmit;
         browser.MinWidth = 750;
         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", "ReSubmit"), Utility.GetResourceStr("CONFIRMBUTTON"));
 }
예제 #30
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"));
     }
 }