Exemplo n.º 1
0
        void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            string strLeaveTypeSetID = string.Empty;

            if (DaGr.SelectedItems == null)
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("SELECTDATAALERT"), Utility.GetResourceStr("CONFIRMBUTTON"), MessageIcon.Exclamation);
                return;
            }

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

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

            ContractTemplates AddWin  = new ContractTemplates(FormTypes.Edit, ent);
            EntityBrowser     browser = new EntityBrowser(AddWin);

            browser.MinWidth         = 550;
            browser.MinHeight        = 430;
            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
        }
Exemplo n.º 2
0
        void BtnView_Click(object sender, RoutedEventArgs e)
        {
            string strLeaveTypeSetID = string.Empty;

            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;
            }

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

            ContractTemplates AddWin  = new ContractTemplates(FormTypes.Browse, ent);
            EntityBrowser     browser = new EntityBrowser(AddWin);

            browser.FormType         = FormTypes.Browse;
            browser.MinWidth         = 550;
            browser.MinHeight        = 410;
            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
        }
Exemplo n.º 3
0
        void btnNew_Click(object sender, RoutedEventArgs e)
        {
            tacInfo = new V_ContractTemplate();
            ContractTemplates AddWin  = new ContractTemplates(FormTypes.New, tacInfo);
            EntityBrowser     browser = new EntityBrowser(AddWin);

            browser.MinWidth         = 550;
            browser.MinHeight        = 430;
            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
        }