Exemplo n.º 1
0
        void btnReSubmit_Click(object sender, RoutedEventArgs e)
        {
            if (DaGr.SelectedItems == null)
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "ReSubmit"), Utility.GetResourceStr("CONFIRMBUTTON"));
                return;
            }

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

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

            WelfareProvisionChildWindows AddWin = new WelfareProvisionChildWindows(FormTypes.Resubmit, ent.welfareProvision.WELFAREDISTRIBUTEMASTERID);
            EntityBrowser browser = new EntityBrowser(AddWin);

            browser.FormType         = FormTypes.Resubmit;
            browser.MinWidth         = 590;
            browser.MinHeight        = 490;
            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
        }
Exemplo n.º 2
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;
            }

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

            if (ent.welfareProvision.CHECKSTATE == ((int)CheckStates.UnSubmit).ToString() || ent.welfareProvision.CHECKSTATE == ((int)CheckStates.UnApproved).ToString())
            {
                WelfareProvisionChildWindows AddWin = new WelfareProvisionChildWindows(FormTypes.Edit, ent.welfareProvision.WELFAREDISTRIBUTEMASTERID);
                EntityBrowser browser = new EntityBrowser(AddWin);
                browser.FormType         = FormTypes.Edit;
                browser.MinWidth         = 590;
                browser.MinHeight        = 490;
                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("NOTONLYCANMODIFYTHEDATASUBMITTED"));
                return;
            }
        }
Exemplo n.º 3
0
        void btnNew_Click(object sender, RoutedEventArgs e)
        {
            WelfareProvisionChildWindows AddWin = new WelfareProvisionChildWindows(FormTypes.New, "");
            EntityBrowser browser = new EntityBrowser(AddWin);

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

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

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

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

            if (ent.welfareProvision.CHECKSTATE == ((int)CheckStates.Approving).ToString() ||
                ent.welfareProvision.CHECKSTATE == ((int)CheckStates.WaittingApproval).ToString() ||
                ent.welfareProvision.CHECKSTATE == ((int)CheckStates.UnSubmit).ToString())
            {
                WelfareProvisionChildWindows AddWin = new WelfareProvisionChildWindows(FormTypes.Audit, ent.welfareProvision.WELFAREDISTRIBUTEMASTERID);
                EntityBrowser browser = new EntityBrowser(AddWin);
                browser.FormType         = FormTypes.Audit;
                browser.MinWidth         = 590;
                browser.MinHeight        = 490;
                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTRECORDNOTOPERATEPLEASEAGAIN"));
                return;
            }
        }
Exemplo n.º 5
0
        void btnReSubmit_Click(object sender, RoutedEventArgs e)
        {
            if (DaGr.SelectedItems == null)
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "ReSubmit"), Utility.GetResourceStr("CONFIRMBUTTON"));
                return;
            }

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

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

            WelfareProvisionChildWindows AddWin = new WelfareProvisionChildWindows(FormTypes.Resubmit, ent.welfareProvision.WELFAREDISTRIBUTEMASTERID);
            EntityBrowser browser = new EntityBrowser(AddWin);
            browser.FormType = FormTypes.Resubmit;
            browser.MinWidth = 590;
            browser.MinHeight = 490;
            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
        }
Exemplo n.º 6
0
        void btnAudit_Click(object sender, RoutedEventArgs e)
        {
            string strLeaveTypeSetID = string.Empty;
            if (DaGr.SelectedItems == null)
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "AUDIT"), Utility.GetResourceStr("CONFIRMBUTTON"));
                return;
            }

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

            V_WelfareProvision ent = DaGr.SelectedItems[0] as V_WelfareProvision;
            if (ent.welfareProvision.CHECKSTATE == ((int)CheckStates.Approving).ToString() ||
                ent.welfareProvision.CHECKSTATE == ((int)CheckStates.WaittingApproval).ToString() ||
                ent.welfareProvision.CHECKSTATE == ((int)CheckStates.UnSubmit).ToString())
            {

                WelfareProvisionChildWindows AddWin = new WelfareProvisionChildWindows(FormTypes.Audit, ent.welfareProvision.WELFAREDISTRIBUTEMASTERID);
                EntityBrowser browser = new EntityBrowser(AddWin);
                browser.FormType = FormTypes.Audit;
                browser.MinWidth = 590;
                browser.MinHeight = 490;
                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTRECORDNOTOPERATEPLEASEAGAIN"));
                return;
            }
        }
Exemplo n.º 7
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;
            }

            V_WelfareProvision ent = DaGr.SelectedItems[0] as V_WelfareProvision;
            if (ent.welfareProvision.CHECKSTATE == ((int)CheckStates.UnSubmit).ToString() || ent.welfareProvision.CHECKSTATE == ((int)CheckStates.UnApproved).ToString())
            {
                WelfareProvisionChildWindows AddWin = new WelfareProvisionChildWindows(FormTypes.Edit, ent.welfareProvision.WELFAREDISTRIBUTEMASTERID);
                EntityBrowser browser = new EntityBrowser(AddWin);
                browser.FormType = FormTypes.Edit;
                browser.MinWidth = 590;
                browser.MinHeight = 490;
                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("NOTONLYCANMODIFYTHEDATASUBMITTED"));
                return;
            }
        }
Exemplo n.º 8
0
 void btnNew_Click(object sender, RoutedEventArgs e)
 {
     WelfareProvisionChildWindows AddWin = new WelfareProvisionChildWindows(FormTypes.New, "");
     EntityBrowser browser = new EntityBrowser(AddWin);
     browser.MinWidth = 590;
     browser.MinHeight = 490;
     browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
     browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
 }