예제 #1
0
        //void BtnView_Click(object sender, RoutedEventArgs e)
        //{
        //    // client.PostLevelDistinctionUpdateAsync(postLevels);
        //    if (DtGrid.SelectedItems.Count > 0)
        //    {
        //        T_HR_SALARYSYSTEM tmpEnt = DtGrid.SelectedItems[0] as T_HR_SALARYSYSTEM;

        //        Form.Salary.SalarySystemForm form = new SMT.HRM.UI.Form.Salary.SalarySystemForm(tmpEnt.SALARYSYSTEMID);

        //        EntityBrowser browser = new EntityBrowser(form);
        //        browser.TitleContent = Utility.GetResourceStr("SALARYSYSTEMTABEL");
        //        //form.MinWidth = 400;
        //        //form.MinHeight = 230;
        //        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"));
        //        return;
        //    }
        //}
        void btnPreView_Click(object sender, RoutedEventArgs e)
        {
            // client.PostLevelDistinctionUpdateAsync(postLevels);
            if (DtGrid.SelectedItems.Count > 0)
            {
                T_HR_SALARYSYSTEM tmpEnt = DtGrid.SelectedItems[0] as T_HR_SALARYSYSTEM;

                Form.Salary.SalarySystemForm form = new SMT.HRM.UI.Form.Salary.SalarySystemForm(tmpEnt.SALARYSYSTEMID);
                //form.Show();
                EntityBrowser browser = new EntityBrowser(form);
                browser.FormType = FormTypes.Browse;
                // browser.FormType = FormTypes.Edit;
                //browser.EntityEditor.v
                browser.TitleContent = Utility.GetResourceStr("SALARYSYSTEMTABEL");
                //form.MinWidth = 400;
                //form.MinHeight = 230;

                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                browser.Show <string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
            }
            else
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "PREVIEW"),
                                               Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "PREVIEW"));
                return;
            }
        }
예제 #2
0
        void btnPreView_Click(object sender, RoutedEventArgs e)
        {
            Form.Salary.SalarySystemForm form = new SMT.HRM.UI.Form.Salary.SalarySystemForm();

            //  EntityBrowser browser = new EntityBrowser(form);
            //browser.FormType = FormTypes.Browse;
            //browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
            //   browser.Show();
            form.Show();
        }
예제 #3
0
 void btnPreView_Click(object sender,RoutedEventArgs e)
 {
     Form.Salary.SalarySystemForm form = new SMT.HRM.UI.Form.Salary.SalarySystemForm();
    
   //  EntityBrowser browser = new EntityBrowser(form);
     //browser.FormType = FormTypes.Browse;
     //browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
  //   browser.Show();
     form.Show();
  
   
     
     
 }
예제 #4
0
        //void BtnView_Click(object sender, RoutedEventArgs e)
        //{
        //    // client.PostLevelDistinctionUpdateAsync(postLevels);
        //    if (DtGrid.SelectedItems.Count > 0)
        //    {
        //        T_HR_SALARYSYSTEM tmpEnt = DtGrid.SelectedItems[0] as T_HR_SALARYSYSTEM;

        //        Form.Salary.SalarySystemForm form = new SMT.HRM.UI.Form.Salary.SalarySystemForm(tmpEnt.SALARYSYSTEMID);

        //        EntityBrowser browser = new EntityBrowser(form);
        //        browser.TitleContent = Utility.GetResourceStr("SALARYSYSTEMTABEL");
        //        //form.MinWidth = 400;
        //        //form.MinHeight = 230;
        //        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"));
        //        return;
        //    }
        //}
        void btnPreView_Click(object sender, RoutedEventArgs e)
        {
            // client.PostLevelDistinctionUpdateAsync(postLevels);
            if (DtGrid.SelectedItems.Count > 0)
            {
                T_HR_SALARYSYSTEM tmpEnt = DtGrid.SelectedItems[0] as T_HR_SALARYSYSTEM;

                Form.Salary.SalarySystemForm form = new SMT.HRM.UI.Form.Salary.SalarySystemForm(tmpEnt.SALARYSYSTEMID);
                //form.Show();
                EntityBrowser browser = new EntityBrowser(form);
                browser.FormType = FormTypes.Browse;
                // browser.FormType = FormTypes.Edit; 
                //browser.EntityEditor.v
                browser.TitleContent = Utility.GetResourceStr("SALARYSYSTEMTABEL");
                //form.MinWidth = 400;
                //form.MinHeight = 230;

                browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                browser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
            }
            else
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "PREVIEW"),
Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
                //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "PREVIEW"));
                return;
            }
        }