Esempio n. 1
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;
     }
 }
Esempio n. 2
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;
     }
 }
Esempio n. 3
0
        void btnAudit_Click(object sender, RoutedEventArgs e)
        {
            //throw new NotImplementedException();

            SMT.SaaS.FrameworkUI.AuditControl.AuditControl AuditApp = new SMT.SaaS.FrameworkUI.AuditControl.AuditControl();

            if (Meetingroomapp != null)
            {
                if (MeetingRoomAppT.CHECKSTATE == "2")
                {
                    Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("WARING"), Utility.GetResourceStr("MEETINGROOMAPPAUDITEDNOTAUDIT"));
                    return;
                }
                else
                {
                    if (Meetingroomapp.roomapp.CHECKSTATE == "1" || Meetingroomapp.roomapp.CHECKSTATE == "4") // if (checkState == "1" || checkState == "4") //待审核 或正审核
                    {
                        MeetingRoomAppForm AddWin  = new MeetingRoomAppForm(FormTypes.Audit, Meetingroomapp.roomapp, Meetingroomapp.room);
                        EntityBrowser      browser = new EntityBrowser(AddWin);
                        browser.FormType         = FormTypes.Audit;
                        browser.MinHeight        = 480;
                        browser.MinWidth         = 320;
                        browser.ReloadDataEvent += new EntityBrowser.refreshGridView(AddWin_ReloadDataEvent);
                        browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
                    }
                    Meetingroomapp = null;
                }
            }
            else
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "AUDIT"), Utility.GetResourceStr("CONFIRMBUTTON"));
                return;
            }
        }
Esempio n. 4
0
        void DaGr_CurrentCellChanged(object sender, EventArgs e)
        {
            DataGrid grid = sender as DataGrid;

            if (grid.SelectedItem != null)
            {
                Meetingroomapp = (V_MeetingRoomApp)grid.SelectedItems[0];//获取当前选中的行数据并转换为对应的实体
            }
        }
Esempio n. 5
0
        void DaGr_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            DataGrid grid = sender as DataGrid;

            if (grid.SelectedItems.Count == 0)
            {
                return;
            }
            if (grid.SelectedItems.Count > 0)
            {
                Meetingroomapp = (V_MeetingRoomApp)grid.SelectedItems[0];//获取当前选中的行数据并转换为对应的实体
            }
        }
Esempio n. 6
0
        public List <V_MeetingRoomApp> GetMeetingRoomAppInfosByFlow(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo)
        {
            using (MeetingRoomAppManagementBll RoomAppBll = new MeetingRoomAppManagementBll())
            {
                IQueryable <V_MeetingRoomApp> RoomAppsList = null;

                if (checkState != ((int)CheckStates.WaittingApproval).ToString())  //获取待审核信息
                {
                    if (checkState == ((int)CheckStates.ALL).ToString())
                    {
                        RoomAppsList = RoomAppBll.GetMeetingRoomAppInfosByFlow(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, "", loginUserInfo.userID);
                    }
                    else
                    {
                        RoomAppsList = RoomAppBll.GetMeetingRoomAppInfosByFlow(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, checkState, loginUserInfo.userID);
                    }
                }
                else
                {
                    ServiceClient           workFlowWS = new ServiceClient();
                    V_MeetingRoomApp        a          = new V_MeetingRoomApp();
                    FLOW_FLOWRECORDDETAIL_T flowInfo   = new FLOW_FLOWRECORDDETAIL_T(); //审核人 操作

                    FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", "0", "MeetingRoomApp", loginUserInfo.companyID, loginUserInfo.userID);
                    if (flowList == null)
                    {
                        return(null);
                    }
                    List <V_FlowAPP> flowAppList = new List <V_FlowAPP>();
                    for (int i = 0; i < flowList.Length; i++)
                    {
                        V_FlowAPP App = new V_FlowAPP();
                        App.Guid         = flowList[i].FLOWRECORDDETAILID;
                        App.FormID       = flowList[i].FLOW_FLOWRECORDMASTER_T.FORMID;
                        App.EditUserID   = flowList[i].EDITUSERID;
                        App.EditUserName = flowList[i].EDITUSERNAME;
                        flowAppList.Add(App);
                    }
                    checkState   = ((int)CheckStates.Approving).ToString();
                    RoomAppsList = RoomAppBll.GetMeetingRoomAppInfosByFlow(pageIndex, pageSize, sort, filterString, paras, ref pageCount, flowAppList, checkState, loginUserInfo.userID);
                }
                return(RoomAppsList != null?RoomAppsList.ToList() : null);
            }
        }
Esempio n. 7
0
 void BtnView_Click(object sender, RoutedEventArgs e)
 {
     if (Meetingroomapp != null)
     {
         MeetingRoomAppForm AddWin  = new MeetingRoomAppForm(FormTypes.Browse, Meetingroomapp.roomapp, Meetingroomapp.room);
         EntityBrowser      browser = new EntityBrowser(AddWin);
         browser.FormType         = FormTypes.Browse;
         browser.MinHeight        = 480;
         browser.MinWidth         = 400;
         browser.ReloadDataEvent += new EntityBrowser.refreshGridView(AddWin_ReloadDataEvent);
         browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
         Meetingroomapp = null;
     }
     else
     {
         ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "VIEW"), Utility.GetResourceStr("CONFIRMBUTTON"));
         return;
     }
 }
Esempio n. 8
0
        void btnSumbitAudit_Click(object sender, RoutedEventArgs e)
        {
            SMT.SaaS.FrameworkUI.AuditControl.AuditControl AuditApp = new SMT.SaaS.FrameworkUI.AuditControl.AuditControl();
            V_MeetingRoomApp VMeetingRoom = new V_MeetingRoomApp();

            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)
                        {
                            VMeetingRoom = cb1.Tag as V_MeetingRoomApp;
                            break;
                        }
                    }
                }
            }

            if (VMeetingRoom.roomapp != null)
            {
                if (checkState == "1" || checkState == "4") //待审核 或正审核
                {
                    MeetingRoomAppForm AddWin  = new MeetingRoomAppForm(FormTypes.Audit, VMeetingRoom.roomapp, VMeetingRoom.room);
                    EntityBrowser      browser = new EntityBrowser(AddWin);
                    browser.MinHeight        = 480;
                    browser.MinWidth         = 400;
                    browser.ReloadDataEvent += new EntityBrowser.refreshGridView(AddWin_ReloadDataEvent);
                    browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
                }
            }
            else
            {
                //MessageBox.Show("请选择需要修改的会议室申请信息");
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("PLEASESELECT", "MEETINGROOMAPP"));
                return;
            }
        }
Esempio n. 9
0
        private void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            if (Meetingroomapp != null)
            {
                if (SMT.SaaS.FrameworkUI.Common.Utility.ToolBarButtonOperationPermission(Meetingroomapp.roomapp, "T_OA_MEETINGROOMAPP", OperationType.Edit, Common.CurrentLoginUserInfo.EmployeeID))
                {
                    if (Meetingroomapp.roomapp.CHECKSTATE == "0" || Meetingroomapp.roomapp.CHECKSTATE == "3")
                    {
                        MeetingRoomAppForm AddWin  = new MeetingRoomAppForm(FormTypes.Edit, Meetingroomapp.roomapp, Meetingroomapp.room);
                        EntityBrowser      browser = new EntityBrowser(AddWin);
                        browser.FormType         = FormTypes.Edit;
                        browser.MinHeight        = 380;
                        browser.MinWidth         = 350;
                        browser.ReloadDataEvent += new EntityBrowser.refreshGridView(AddWin_ReloadDataEvent);
                        browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
                    }
                    else
                    {
                        Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("MEETINGROOMAPPNOTEDIT"));
                    }
                }
                else
                {
                    //Utility.ShowCustomMessage(MessageTypes.Caution, Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("YOUDONOTHAVEPERMISSIONTOOPERATETHEDATA"));
                    ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("YOUDONOTHAVEPERMISSIONTOOPERATETHEDATA"),
                                                   Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                }

                Meetingroomapp = null;
            }
            else
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "EDIT"), Utility.GetResourceStr("CONFIRMBUTTON"));
                return;
            }
        }
Esempio n. 10
0
        void BtnView_Click(object sender, RoutedEventArgs e)
        {

            if (Meetingroomapp != null)
            {
                MeetingRoomAppForm AddWin = new MeetingRoomAppForm(FormTypes.Browse, Meetingroomapp.roomapp, Meetingroomapp.room);
                EntityBrowser browser = new EntityBrowser(AddWin);
                browser.FormType = FormTypes.Browse;
                browser.MinHeight = 480;
                browser.MinWidth = 400;
                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(AddWin_ReloadDataEvent);
                browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
                Meetingroomapp = null;
            }
            else
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "VIEW"), Utility.GetResourceStr("CONFIRMBUTTON"));
                return;
            }
        }
Esempio n. 11
0
        void btnAudit_Click(object sender, RoutedEventArgs e)
        {
            //throw new NotImplementedException();

            SMT.SaaS.FrameworkUI.AuditControl.AuditControl AuditApp = new SMT.SaaS.FrameworkUI.AuditControl.AuditControl();

            if (Meetingroomapp != null)
            {
                if (MeetingRoomAppT.CHECKSTATE == "2")
                {
                    Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("WARING"), Utility.GetResourceStr("MEETINGROOMAPPAUDITEDNOTAUDIT"));
                    return;
                }
                else
                {

                    if (Meetingroomapp.roomapp.CHECKSTATE == "1" || Meetingroomapp.roomapp.CHECKSTATE == "4") // if (checkState == "1" || checkState == "4") //待审核 或正审核
                    {
                        MeetingRoomAppForm AddWin = new MeetingRoomAppForm(FormTypes.Audit, Meetingroomapp.roomapp, Meetingroomapp.room);
                        EntityBrowser browser = new EntityBrowser(AddWin);
                        browser.FormType = FormTypes.Audit;
                        browser.MinHeight = 480;
                        browser.MinWidth = 320;
                        browser.ReloadDataEvent += new EntityBrowser.refreshGridView(AddWin_ReloadDataEvent);
                        browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
                    }
                    Meetingroomapp = null;
                }
            }
            else
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "AUDIT"), Utility.GetResourceStr("CONFIRMBUTTON"));
                return;
            }
        }
Esempio n. 12
0
 void AddWin_ReloadDataEvent()
 {
     Meetingroomapp = null;
     LoadMeetingRoomAppInfos();
 }
Esempio n. 13
0
        private void btnEdit_Click(object sender, RoutedEventArgs e)
        {

            if (Meetingroomapp != null)
            {
                if (SMT.SaaS.FrameworkUI.Common.Utility.ToolBarButtonOperationPermission(Meetingroomapp.roomapp, "T_OA_MEETINGROOMAPP", OperationType.Edit, Common.CurrentLoginUserInfo.EmployeeID))
                {
                    if (Meetingroomapp.roomapp.CHECKSTATE == "0" || Meetingroomapp.roomapp.CHECKSTATE == "3")
                    {
                        MeetingRoomAppForm AddWin = new MeetingRoomAppForm(FormTypes.Edit, Meetingroomapp.roomapp, Meetingroomapp.room);
                        EntityBrowser browser = new EntityBrowser(AddWin);
                        browser.FormType = FormTypes.Edit;
                        browser.MinHeight = 380;
                        browser.MinWidth = 350;
                        browser.ReloadDataEvent += new EntityBrowser.refreshGridView(AddWin_ReloadDataEvent);
                        browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
                    }
                    else
                    {
                        Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("MEETINGROOMAPPNOTEDIT"));
                    }

                }
                else
                {
                    //Utility.ShowCustomMessage(MessageTypes.Caution, Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("YOUDONOTHAVEPERMISSIONTOOPERATETHEDATA"));
                    ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("YOUDONOTHAVEPERMISSIONTOOPERATETHEDATA"),
                   Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                }

                Meetingroomapp = null;
            }
            else
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "EDIT"), Utility.GetResourceStr("CONFIRMBUTTON"));
                return;
            }


        }
Esempio n. 14
0
 void AddWin_ReloadDataEvent()
 {
     Meetingroomapp = null;
     LoadMeetingRoomAppInfos();
 }
Esempio n. 15
0
 void DaGr_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     DataGrid grid = sender as DataGrid;
     if (grid.SelectedItems.Count == 0)
     {
         return;
     }
     if (grid.SelectedItems.Count > 0)
     {
         Meetingroomapp = (V_MeetingRoomApp)grid.SelectedItems[0];//获取当前选中的行数据并转换为对应的实体     
     }
 }
Esempio n. 16
0
        void btnSumbitAudit_Click(object sender, RoutedEventArgs e)
        {
            SMT.SaaS.FrameworkUI.AuditControl.AuditControl AuditApp = new SMT.SaaS.FrameworkUI.AuditControl.AuditControl();
            V_MeetingRoomApp VMeetingRoom = new V_MeetingRoomApp();

            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)
                        {
                            VMeetingRoom = cb1.Tag as V_MeetingRoomApp;
                            break;
                        }
                    }
                }

            }

            if (VMeetingRoom.roomapp != null)
            {

                if (checkState == "1" || checkState == "4") //待审核 或正审核
                {
                    MeetingRoomAppForm AddWin = new MeetingRoomAppForm(FormTypes.Audit, VMeetingRoom.roomapp, VMeetingRoom.room);
                    EntityBrowser browser = new EntityBrowser(AddWin);
                    browser.MinHeight = 480;
                    browser.MinWidth = 400;
                    browser.ReloadDataEvent += new EntityBrowser.refreshGridView(AddWin_ReloadDataEvent);
                    browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
                }

            }
            else
            {
                //MessageBox.Show("请选择需要修改的会议室申请信息");
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("PLEASESELECT", "MEETINGROOMAPP"));
                return;
            }
        }
Esempio n. 17
0
 void DaGr_CurrentCellChanged(object sender, EventArgs e)
 {
     DataGrid grid = sender as DataGrid;
     if (grid.SelectedItem != null)
     {
         Meetingroomapp = (V_MeetingRoomApp)grid.SelectedItems[0];//获取当前选中的行数据并转换为对应的实体     
     }
 }