예제 #1
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) => { });
            }
        }
예제 #2
0
        void BtnView_Click(object sender, RoutedEventArgs e)
        {
            if (DaGr.SelectedItems == null)
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "VIEW"), Utility.GetResourceStr("CONFIRMBUTTON"));
                return;
            }

            if (DaGr.SelectedItems.Count == 0)
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "VIEW"), Utility.GetResourceStr("CONFIRMBUTTON"));
                return;
            }

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

            AgentAgingSetForm AddWin = new AgentAgingSetForm(FormTypes.Browse, ent.AGENTDATESETID);
            EntityBrowser browser = new EntityBrowser(AddWin);
            browser.FormType = FormTypes.Browse;
            browser.MinWidth = 500;
            browser.MinHeight = 220;
            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
        }
예제 #3
0
 void btnNew_Click(object sender, RoutedEventArgs e)
 {
     AgentAgingSetForm AddWin = new AgentAgingSetForm(FormTypes.New, "");
     EntityBrowser browser = new EntityBrowser(AddWin);
     browser.MinWidth = 550;
     browser.MinHeight = 220;
     browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
     browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
 }