CEL_Payroll/Payroll.UI/Payroll.UI/CreateUI.cs
2025-08-06 14:31:52 +06:00

3201 lines
181 KiB
C#

using System;
using Ease.UICreator;
using Payroll.BO;
using Ease.CoreV35.Model;
using Payroll.BO;
using System.Linq;
using System.Text;
namespace Payroll.UI
{
public class BasicUIForms : CreateUIException
{
#region Private Functions
private void IncorporateUIConfiguration(System.Windows.Forms.Form form)
{
try
{
ConfigureUI ui = new ConfigureUI();
ui.UIConfigure(form);
}
catch (Exception ex)
{
throw new Exception(ex.Message);
}
}
private void TreeViewConfiguration(UICreator uicreator)
{
try
{
if (uicreator.MasterForm.TreeView.ConfigNodeName == null) return;
ConfigurationManager manager = new ConfigurationManager();
uicreator.MasterForm.TreeView.NumberOfTier = ConfigurationManager.GetIntValue(uicreator.MasterForm.TreeView.ConfigNodeName, "tier", EnumConfigurationType.Logic);
if (uicreator.MasterForm.TreeView.NumberOfTier == 0) return;
ObjectsTemplate<Configaration> uiConfs = manager.GetChilds(uicreator.MasterForm.TreeView.ConfigNodeName, EnumConfigurationType.Logic);
ObjectsTemplate<Configaration> childs = manager.GetChilds(uiConfs, "tiernames");
if (childs == null) return;
int nSequence = 1;
foreach (Configaration item in childs)
{
string sValue = item.ConAttributes.GetAttributeValue("tier");
if (Int32.TryParse(sValue, out nSequence) == false)
{
break;
}
uicreator.MasterForm.TreeView.Tiers.Add(item.Value, nSequence);
}
if (uicreator.MasterForm.TreeView.NumberOfTier != uicreator.MasterForm.TreeView.Tiers.Count)
throw new ServiceException("Number of Tier is " + uicreator.MasterForm.TreeView.NumberOfTier.ToString() + " Tier Names found "
+ uicreator.MasterForm.TreeView.Tiers.Count.ToString());
}
catch (Exception ex)
{
throw new ServiceException(ex.Message);
}
}
#endregion
#region BasicUI Show Functions
public void showCategories()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Category.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Categories";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.Listviewcloumns.Add("WagesType", "WagesType");
ui.MasterForm.FormName = "fCagegories";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
//ui.MasterForm.SingleForm.Controls.LastAddedControl.IsCodeAutoGenerated = false;
bool bvalid = ConfigurationManager.GetBoolValue("category", "codeautogenerate", EnumConfigurationType.Logic);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsCodeAutoGenerated = bvalid;
ui.MasterForm.SingleForm.FormName = "fcategory";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.FormName = "fcategory";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "WagesType", "lblWage", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboType", "WagesType", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 50;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Enum;
string enumStrings = Enum.GetValues(typeof(EnumWagesType))
.Cast<EnumWagesType>().ToList()
.Aggregate(new StringBuilder(),
(sb, en) => sb.Append(string.Format("{0} = {1}|", en.ToString().Replace('_', ' '), (int)en)),
sb => sb.ToString().Trim('|', ' '));
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = enumStrings;
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Check, "Is Active", "chkActive", "Status");
//ui.MasterForm.SingleForm.Controls.LastAddedControl.PositionX = 120;
ui.MasterForm.SingleForm.Source = new Category();
ui.MasterForm.SingleForm.Caption = "Category";
// ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Status", "lblStatus", "");
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboStatus", "Status",0,200);
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Enum;
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Active=1|InActive=2";
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Collection;
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Name";
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DataPropertyName = "ID";
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.AddComboSource(Category.Get());
//ui.MasterForm.SingleForm.Source = new Category();
//ui.MasterForm.SingleForm.Caption = "Category";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showOutSideDuties()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(OutsideDuty.Get(EnumStatus.Active));
ui.MasterForm.Caption = "OutsideDuties";
//ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fOutsideDuties";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "lblName", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtNmae", "Name", 10, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 300;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fOutsideDuty";
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtName", "Name", 20, 300);
//ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
//ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 20;
ui.MasterForm.SingleForm.Source = new OutsideDuty();
ui.MasterForm.SingleForm.Caption = "OutsideDuty";
//ui.MasterForm.SingleForm.Source = new OutsideDuty();
//ui.MasterForm.SingleForm.Caption = "OutsideDuty";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showCosCenter()
{
try
{
UICreator ui = new UICreator(enumUIType.TreeView);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Costcenter.GetParents(EnumStatus.Active));
ui.MasterForm.Caption = "Cost Center";
ui.MasterForm.TreeView.RootNodeText = "Cost Center";
ui.MasterForm.TreeView.PropertyNames = "Name";
ui.MasterForm.TreeView.ConfigNodeName = "costcenter";
ui.MasterForm.FormName = "fCostCenters";
ui.MasterForm.SingleForm.FormName = "fCostCenter";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 20, 100);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 20;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new Costcenter();
ui.MasterForm.SingleForm.Caption = "Cost Center";
this.TreeViewConfiguration(ui);
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showBank()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Bank.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Banks";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fBanks";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
// ui.MasterForm.SingleForm.Controls.LastAddedControl.IsCodeAutoGenerated = false;
bool bvalid = ConfigurationManager.GetBoolValue("bank", "codeautogenerate", EnumConfigurationType.Logic);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsCodeAutoGenerated = bvalid;
ui.MasterForm.SingleForm.FormName = "fBank";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Acc.No", "Acc.No", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtAccNo", "Accountingformat", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new Bank();
ui.MasterForm.SingleForm.Caption = "Bank";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showBranch()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Branch.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Branches";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fBranches";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 100);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 12;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsCodeAutoGenerated = ConfigurationManager.GetBoolValue("branch", "codeautogenerate", EnumConfigurationType.Logic);
ui.MasterForm.SingleForm.FormName = "fBranch";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 80;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Address", "Address", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtAddress", "Address", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = false;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Telephone No", "Telephone", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtTele", "Telephone", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry =false ;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Bank", "lblBank", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboBank", "BankID", 20, 200);
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Collection;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.AddComboSource(Bank.Get(EnumStatus.Active));
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Name";
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DataPropertyName = "ID";
ui.MasterForm.SingleForm.Source = new Branch();
ui.MasterForm.SingleForm.Caption = "Branch";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showMarketSurveyCompany()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(MarketSurveyCompany.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Market Survey Companies";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fMarketSurveyCompanies";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsCodeAutoGenerated = false;
ui.MasterForm.SingleForm.FormName = "fMarketSurveyCompany";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 80;
ui.MasterForm.SingleForm.Source = new MarketSurveyCompany();
ui.MasterForm.SingleForm.Caption = "Market Survey Company";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showDepartment()
{
try
{
UICreator ui = new UICreator(enumUIType.TreeView);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Department.GetParents(EnumStatus.Active));
// XML Logic configuration file will contain the
// description of the Treeview( Number of Tier, Tier's name) with the
// tag name 'ui.MasterForm.Caption'
ui.MasterForm.Caption = "Departments";
ui.MasterForm.TreeView.RootNodeText = "Organization Unit";
ui.MasterForm.TreeView.PropertyNames = "Name";
ui.MasterForm.TreeView.ConfigNodeName = "department";
ui.MasterForm.FormName = "fdepartments";
ui.MasterForm.SingleForm.FormName = "fdepartment";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtcode", "Code", 20, 100);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 20;
// ui.MasterForm.SingleForm.Controls.LastAddedControl.IsCodeAutoGenerated = false;
bool bvalid = ConfigurationManager.GetBoolValue("department", "codeautogenerate", EnumConfigurationType.Logic);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsCodeAutoGenerated = bvalid;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "RC", "lblRCCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtRCCode", "RCCode", 20, 100);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 20;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new Department();
ui.MasterForm.SingleForm.Caption = "Department";
//ui.MasterForm.SingleForm.Source = new Department();
//ui.MasterForm.SingleForm.Caption = "Department";
this.TreeViewConfiguration(ui);
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showLocation()
{
try
{
UICreator ui = new UICreator(enumUIType.TreeView);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Location.GetParents(EnumStatus.Active));
// XML Logic configuration file will contain the
// description of the Treeview( Number of Tier, Tier's name) with the
// tag name 'ui.MasterForm.Caption'
ui.MasterForm.Caption = "Location";
ui.MasterForm.TreeView.RootNodeText = "Location";
ui.MasterForm.TreeView.PropertyNames = "Name";
ui.MasterForm.TreeView.ConfigNodeName = "location";
ui.MasterForm.FormName = "fLocations";
ui.MasterForm.SingleForm.FormName = "fLocation";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 20, 100);
bool bvalid = ConfigurationManager.GetBoolValue("location", "codeautogenerate", EnumConfigurationType.Logic);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsCodeAutoGenerated = bvalid;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new Location();
ui.MasterForm.SingleForm.Caption = "Location";
ui.MasterForm.SingleForm.Source = new Location();
ui.MasterForm.SingleForm.Caption = "Location";
this.TreeViewConfiguration(ui);
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
//public void showOGPositionType()
//{
// try
// {
// UICreator ui = new UICreator(enumUIType.Tabular);
// ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
// ui.MasterForm.CopyCollList(OGPositionType.Get(EnumStatus.Active));
// ui.MasterForm.Caption = "OGPositionTypes";
// ui.MasterForm.Listviewcloumns.Add("Code", "Code");
// ui.MasterForm.Listviewcloumns.Add("Name", "Name");
// ui.MasterForm.Listviewcloumns.Add("Status", "Status");
// ui.MasterForm.FormName = "fOGPositionTypes";
// ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
// ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
// ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
// ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
// ui.MasterForm.SingleForm.FormName = "fOGPositionType";
// ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
// ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtName", "Name", 20, 300);
// ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
// ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
// ui.MasterForm.SingleForm.Source = new OGPositionType();
// ui.MasterForm.SingleForm.Caption = "OGPositionType";
// ui.CreatForm();
// }
// catch (Exception ex)
// {
// System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
// }
//}
public void showDesignations()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Designation.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Designations";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fDesignations";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 20, 100);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 20;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
bool bvalid = ConfigurationManager.GetBoolValue("designation", "codeautogenerate", EnumConfigurationType.Logic);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsCodeAutoGenerated = bvalid;
ui.MasterForm.SingleForm.FormName = "fDesignation";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Check, "Is Active", "chkActive", "Status");
//ui.MasterForm.SingleForm.Controls.LastAddedControl.PositionX = 120;
ui.MasterForm.SingleForm.Source = new Designation();
ui.MasterForm.SingleForm.Caption = "Designation";
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Status", "lblStatus", "");
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboStatus", "Status",0,200);
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Enum;
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Active=1|InActive=2";
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Collection;
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Name";
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DataPropertyName = "ID";
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.AddComboSource(Category.Get());
ui.MasterForm.SingleForm.Source = new Designation();
ui.MasterForm.SingleForm.Caption = "Designation";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showReligions()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Religion.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Religions";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fReligions";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 10;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
bool bvalid = ConfigurationManager.GetBoolValue("religion", "codeautogenerate", EnumConfigurationType.Logic);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsCodeAutoGenerated = bvalid;
ui.MasterForm.SingleForm.FormName = "fReligion";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Check, "Is Active", "chkActive", "Status");
//ui.MasterForm.SingleForm.Controls.LastAddedControl.PositionX = 120;
ui.MasterForm.SingleForm.Source = new Religion();
ui.MasterForm.SingleForm.Caption = "Religion";
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Status", "lblStatus", "");
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboStatus", "Status",0,200);
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Enum;
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Active=1|InActive=2";
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Collection;
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Name";
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DataPropertyName = "ID";
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.AddComboSource(Category.Get());
ui.MasterForm.SingleForm.Source = new Religion();
ui.MasterForm.SingleForm.Caption = "Religion";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showGradeSegments()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(GradeSegment.Get(EnumStatus.Active));
ui.MasterForm.Caption = "GradeSegments";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
//ui.MasterForm.Listviewcloumns.Add("BasicPer", "BasicPer");
ui.MasterForm.FormName = "fGradeSegments";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
bool bvalid = ConfigurationManager.GetBoolValue("gradesegment", "codeautogenerate", EnumConfigurationType.Logic);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsCodeAutoGenerated = bvalid;
ui.MasterForm.SingleForm.FormName = "fGradeSegment";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "lblDescription", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new GradeSegment();
ui.MasterForm.SingleForm.Caption = "GradeSegment";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showGrade()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Grade.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Grade";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Max Basic", "MaxBasic");
ui.MasterForm.Listviewcloumns.Add("Min Basic", "MinBasic");
ui.MasterForm.Listviewcloumns.Add("IsTransport", "IsTransport");
ui.MasterForm.FormName = "fGrades";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fGrade";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Description", "lblDescription", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "GradeSegmentID", "lblGradeSegmentID", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboGradeSegmentID", "GradeSegment", 10, 300);
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "MaxBasic", "lblMaxBasic", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtMaxBasic", "MaxBasic", 10, 300);
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "MinBasic", "lblMinBasic", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtMinBasic", "MinBasic", 10, 300);
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "IsTransport", "lblIsTransPort", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Check, "", "chkTransPort", "IsTransport", 10, 300);
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Check, "Is Active", "chkActive", "Status");
//ui.MasterForm.SingleForm.Controls.LastAddedControl.PositionX = 120;
ui.MasterForm.SingleForm.Source = new Grade();
ui.MasterForm.SingleForm.Caption = "Grade";
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Status", "lblStatus", "");
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboStatus", "Status",0,200);
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Enum;
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Active=1|InActive=2";
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Collection;
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Name";
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DataPropertyName = "ID";
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.AddComboSource(Category.Get());
//ui.MasterForm.SingleForm.Source = new GradeSegment();
//ui.MasterForm.SingleForm.Caption = "GradeSegment";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showTerms()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Term.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Term";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Type", "TermType");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fTerms";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 20, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 20;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
bool bvalid = ConfigurationManager.GetBoolValue("term", "codeautogenerate", EnumConfigurationType.Logic);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsCodeAutoGenerated = bvalid;
ui.MasterForm.SingleForm.FormName = "fTerm";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "TermType", "lblType", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboType", "TermType", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 50;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Enum;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Normal=1|Slab=2|AnyAmount=3";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Entity Mode", "lblEntityMode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboEntityMode", "EntityMode", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 50;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Enum;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "OverTime=1|OnCallAllowance=2|TransportAllowance=3|ShiftAllowance=4|ExtraHoursAllowance=5|OverTimeNR=6";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Item Code", "ItemCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtItemCode", "ItemCode", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Max Value", "lblMaxValue", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.NumText, "", "txtMaxValue", "MaxValue", 10, 300);
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "IsFestival", "lblIsFestival", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Check, "", "chkIsFestival", "IsFestival", 20, 300);
//ui.MasterForm.SingleForm.Controls["cboType"].CboBox.DisplayName = "Normal=1|Slab=2|AnyAmount=3";
ui.MasterForm.SingleForm.Source = new Term();
ui.MasterForm.SingleForm.Caption = "Term";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showBonus()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Payroll.BO.Bonus.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Bonus";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fBonuss";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
bool bvalid = ConfigurationManager.GetBoolValue("bonus", "codeautogenerate", EnumConfigurationType.Logic);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsCodeAutoGenerated = bvalid;
ui.MasterForm.SingleForm.FormName = "fBonus";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new Payroll.BO.Bonus();
ui.MasterForm.SingleForm.Caption = "Bonus";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showBonusAdjustItem()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(BonusAdjustItem.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Bonus Adjust Items";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Side", "Side");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fBonusAdjustItems";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fBonusAdjustItem";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Side", "lblSide", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboSide", "Side", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 20;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Enum;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Add=1|Deduct=-1";
ui.MasterForm.SingleForm.Source = new BonusAdjustItem();
ui.MasterForm.SingleForm.Caption = "Bonus Adjust Item";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showAllowances()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(AllowanceDeduction.GetAllowance(EnumStatus.Active));
ui.MasterForm.Caption = "Allowances";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fAllowances";
ui.MasterForm.GetFunctionName = "GetAllowance";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 10;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
bool bvalid = ConfigurationManager.GetBoolValue("allowance", "codeautogenerate", EnumConfigurationType.Logic);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsCodeAutoGenerated = bvalid;
ui.MasterForm.SingleForm.FormName = "fAllowance";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Allowance Type", "lblAllowance", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboAllow", "AllowOrDeductType", 0, 200);
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Enum;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Allowance=1";
ui.MasterForm.SingleForm.Source = new AllowanceDeduction();
ui.MasterForm.SingleForm.Caption = "Allowance";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showDeductions()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(AllowanceDeduction.GetDeduction(EnumStatus.Active));
ui.MasterForm.Caption = "Deductions";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fDeductions";
ui.MasterForm.GetFunctionName = "GetDeduction";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
bool bvalid = ConfigurationManager.GetBoolValue("deduction", "codeautogenerate", EnumConfigurationType.Logic);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsCodeAutoGenerated = bvalid;
ui.MasterForm.SingleForm.FormName = "fDeduction";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Deduction Type", "lblDeduction", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboDeducc", "AllowOrDeductType", 0, 200);
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Enum;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Deduction=2";
ui.MasterForm.SingleForm.Source = new AllowanceDeduction();
ui.MasterForm.SingleForm.Caption = "Deduction";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showLoans()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Payroll.BO.Loan.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Loan";
ui.MasterForm.Listviewcloumns.Add("Loan Description", "Name");
ui.MasterForm.Listviewcloumns.Add("Rate(%)", "InterestRate");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fLoans";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Loan Description", "lblLDescrip", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescrip", "Name", 10, 150);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 150;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fLoan";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Interest Rate", "lblIRate", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.NumText, "", "numInterestRate", "InterestRate", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 20;
ui.MasterForm.SingleForm.Source = new Payroll.BO.Loan();
ui.MasterForm.SingleForm.Caption = "Loan";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showWebRole()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Role.GetWebRole(EnumStatus.Active));
ui.MasterForm.GetFunctionName = "GetWebRole";
ui.MasterForm.Caption = "Web Roles";
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fRoles";
ui.MasterForm.SingleForm.FormName = "fRole";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Description", "Description", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription1", "Description", 30, 300);
//ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Web Role", "lblDeduction", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboWebRole", "RoleType", 5, 200);
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Enum;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Web=2";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Check, "Is Default Role", "chkIsDefault", "IsDefault", 20, 130);
ui.MasterForm.SingleForm.Source = new Role();
ui.MasterForm.SingleForm.Caption = "Role";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showInvestmentsTypes()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(TaxInvestment.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Investment";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Investment Type", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fInvestments";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fInvestment";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "lblName", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtName", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new TaxInvestment();
ui.MasterForm.SingleForm.Caption = "Tax Investment";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showNationalities()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Nationality.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Nationalities";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Description", "Description");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fNationalities";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fNationality";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Description", "Description", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Description", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new Nationality();
ui.MasterForm.SingleForm.Caption = "Nationality";
ui.MasterForm.SingleForm.Source = new Nationality();
ui.MasterForm.SingleForm.Caption = "Nationality";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showRelations()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Relation.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Relations";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Description", "Description");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fRelations";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fRelation";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Description", "Description", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Description", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 50;
ui.MasterForm.SingleForm.Source = new Relation();
ui.MasterForm.SingleForm.Caption = "Relation";
ui.MasterForm.SingleForm.Source = new Relation();
ui.MasterForm.SingleForm.Caption = "Relation";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showOccupations()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Occupation.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Occupations";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Description", "Description");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fOccupations";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fOccupations";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Description", "Description", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Description", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new Occupation();
ui.MasterForm.SingleForm.Caption = "Occupation";
ui.MasterForm.SingleForm.Source = new Occupation();
ui.MasterForm.SingleForm.Caption = "Occupation";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showAchievements()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Achievement.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Achievements";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Description", "Description");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fAchievements";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fAchievement";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Description", "Description", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Description", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new Achievement();
ui.MasterForm.SingleForm.Caption = "Achievement";
ui.MasterForm.SingleForm.Source = new Achievement();
ui.MasterForm.SingleForm.Caption = "Achievement";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showExtraCurricularActivities()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(ExtraCurricularActivity.Get(EnumStatus.Active));
ui.MasterForm.Caption = "ExtraCurricularActivities";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Description", "Description");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fExtraCurricularActivities";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fExtraCurricularActivity";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Description", "Description", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Description", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new ExtraCurricularActivity();
ui.MasterForm.SingleForm.Caption = "ExtraCurricularActivity";
ui.MasterForm.SingleForm.Source = new ExtraCurricularActivity();
ui.MasterForm.SingleForm.Caption = "ExtraCurricularActivity";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showHobbies()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Hobby.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Hobbies";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Description", "Description");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fHobbies";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fHobby";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Description", "Description", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Description", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new Hobby();
ui.MasterForm.SingleForm.Caption = "Hobby";
ui.MasterForm.SingleForm.Source = new Hobby();
ui.MasterForm.SingleForm.Caption = "Hobby";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showOtherTalents()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(OtherTalent.Get(EnumStatus.Active));
ui.MasterForm.Caption = "OtherTalents";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Description", "Description");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fOtherTalents";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fOtherTalent";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Description", "Description", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Description", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new OtherTalent();
ui.MasterForm.SingleForm.Caption = "OtherTalent";
ui.MasterForm.SingleForm.Source = new OtherTalent();
ui.MasterForm.SingleForm.Caption = "OtherTalent";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showGuarantorDocumentTypes()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(GuarantorDocumentType.Get(EnumStatus.Active));
ui.MasterForm.Caption = "GuarantorDocumentTypes";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Description", "Description");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fGuarantorDocumentTypes";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fGuarantorDocumentType";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Description", "Description", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Description", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new GuarantorDocumentType();
ui.MasterForm.SingleForm.Caption = "GuarantorDocumentType";
ui.MasterForm.SingleForm.Source = new GuarantorDocumentType();
ui.MasterForm.SingleForm.Caption = "GuarantorDocumentType";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showAllergies()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Allergy.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Allergies";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Description", "Description");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fAllergies";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fAllergy";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Description", "Description", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Description", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new Allergy();
ui.MasterForm.SingleForm.Caption = "Allergy";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showEducationTypes()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(EducationType.Get(EnumStatus.Active));
ui.MasterForm.Caption = "EducationTypes";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Description", "Description");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fEducationTypes";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fEducationType";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Description", "Description", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Description", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 40;
ui.MasterForm.SingleForm.Source = new EducationType();
ui.MasterForm.SingleForm.Caption = "EducationType";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showDisciplines()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Discipline.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Disciplines";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Description", "Description");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fDisciplines";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fDiscipline";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Description", "Description", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Description", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "EducationLevel", "lblEducationLevel", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboEducationLevel", "EducationLevelID", 20, 200);
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Collection;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.AddComboSource(EducationLevel.Get(EnumStatus.Active));
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Description";
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DataPropertyName = "ID";
ui.MasterForm.SingleForm.Source = new Discipline();
ui.MasterForm.SingleForm.Caption = "Discipline";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showEducationLevels()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(EducationLevel.Get(EnumStatus.Active));
ui.MasterForm.Caption = "EducationLevels";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Description", "Description");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fEducationLevels";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fEducationLevel";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Description", "Description", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Description", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "EducationType", "lblEducationType", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboEducationType", "EducationTypeID", 20, 200);
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Collection;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.AddComboSource(EducationType.Get(EnumStatus.Active));
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Description";
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DataPropertyName = "ID";
ui.MasterForm.SingleForm.Source = new EducationLevel();
ui.MasterForm.SingleForm.Caption = "EducationLevel";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showInstitutions()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Institution.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Institutions";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fInstitutions";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fInstitution";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtName", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "EducationType", "lblEducationType", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboEducationType", "EducationTypeID", 20, 200);
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Collection;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.AddComboSource(EducationType.Get(EnumStatus.Active));
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Description";
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DataPropertyName = "ID";
ui.MasterForm.SingleForm.Source = new Institution();
ui.MasterForm.SingleForm.Caption = "Institution";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showResultTypes()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(ResultType.Get(EnumStatus.Active));
ui.MasterForm.Caption = "ResultTypes";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Description", "Description");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fResultTypes";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fResultType";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Description", "Description", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Description", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new ResultType();
ui.MasterForm.SingleForm.Caption = "ResultType";
ui.MasterForm.SingleForm.Source = new ResultType();
ui.MasterForm.SingleForm.Caption = "ResultType";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showCountries()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Country.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Countries";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fCountries";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fCountry";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtName", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new Country();
ui.MasterForm.SingleForm.Caption = "Country";
ui.MasterForm.SingleForm.Source = new Country();
ui.MasterForm.SingleForm.Caption = "Country";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showDistricts()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(District.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Districts";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fDistricts";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fDistrict";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtName", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Division", "lblDivision", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboDivision", "DivisionID", 20, 200);
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Collection;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.AddComboSource(Division.Get(EnumStatus.Active));
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Name";
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DataPropertyName = "ID";
ui.MasterForm.SingleForm.Source = new District();
ui.MasterForm.SingleForm.Caption = "District";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showThanas()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Thana.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Thanas";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fThanas";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fThana";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtName", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "District", "lblDistrict", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboDistrict", "DistrictID", 20, 200);
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Collection;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.AddComboSource(District.Get(EnumStatus.Active));
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Name";
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DataPropertyName = "ID";
ui.MasterForm.SingleForm.Source = new Thana();
ui.MasterForm.SingleForm.Caption = "Thana";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showNominationPurposes()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(NominationPurpose.Get(EnumStatus.Active));
ui.MasterForm.Caption = "NominationPurposes";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Description", "Description");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fNominationPurposes";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fNominationPurpose";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Description", "Description", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Description", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new NominationPurpose();
ui.MasterForm.SingleForm.Caption = "NominationPurpose";
ui.MasterForm.SingleForm.Source = new NominationPurpose();
ui.MasterForm.SingleForm.Caption = "NominationPurpose";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void ShowoCardType()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(AccessCardType.Get(EnumStatus.Active));
ui.MasterForm.Caption = "AccessCardTypes";
//ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Description", "Description");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fAccessCardTypes";
// ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
// ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
//ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
//ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fAccessCardType";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Description", "Description", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Description", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 30;
ui.MasterForm.SingleForm.Source = new AccessCardType();
ui.MasterForm.SingleForm.Caption = "AccessCardType";
ui.MasterForm.SingleForm.Source = new AccessCardType();
ui.MasterForm.SingleForm.Caption = "AccessCardType";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void ShowHoliDay()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(AttnNationalHoliday.Get(EnumStatus.Active));
ui.MasterForm.Caption = "National Holidays";
//ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Description", "Description");
ui.MasterForm.Listviewcloumns.Add("From Date", "FromDate");
ui.MasterForm.Listviewcloumns.Add("To Date", "ToDate");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fNationalHoliDays";
ui.MasterForm.SingleForm.FormName = "fNationalHoliDay";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Description", "Description", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Description", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 30;
ui.MasterForm.SingleForm.FormName = "fNationalHoliDay";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "From Date", "From Date", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.DTPicker, "", "dtpFromDate", "FromDate", 20, 120);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 30;
ui.MasterForm.SingleForm.FormName = "fNationalHoliDay";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "To Date", "To Date", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.DTPicker, "", "dtpToDate", "ToDate", 20, 120);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 30;
ui.MasterForm.SingleForm.Source = new AttnNationalHoliday();
ui.MasterForm.SingleForm.Caption = "NationalHoliday";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showShiftRotation()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(ShiftRotation.Get(EnumStatus.Active));
ui.MasterForm.Caption = "ShiftRotations";
ui.MasterForm.Listviewcloumns.Add("SShift", "ShortName");
//ui.MasterForm.Listviewcloumns.Add("Name", "Name");
//ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fShiftRotations";
ui.MasterForm.SingleForm.FormName = "fShiftRotation";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Shift", "Shift", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboShift", "ShiftID", 20, 200);
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Collection;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.AddComboSource(Shift.Get());
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "ShortName";
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DataPropertyName = "ID";
ui.MasterForm.SingleForm.Source = new ShiftRotation();
ui.MasterForm.SingleForm.Caption = "ShiftRotation";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void ShowWorkPlanGroup()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(WorkPlanGroup.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Work Plan Groups";
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Type", "Type");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fWorkPlanGroups";
ui.MasterForm.SingleForm.FormName = "fWorkPlan";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtName", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 60;
ui.MasterForm.SingleForm.FormName = "fWorkPlan";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Type", "lblType", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboType", "Type", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 50;
//ui.MasterForm.SingleForm.FormName = "fWorkPlan";
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "FromTime", "lblFromTime", "");
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.DTPicker, "", "dtpFromTime", "FromTime", 20, 120);
//ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
//ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 50;
//ui.MasterForm.SingleForm.FormName = "fWorkPlan";
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "ToTime", "lblToTime", "");
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.DTPicker, "", "dtpToTime", "ToTime", 20, 120);
//ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
//ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 50;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Enum;
string enumStrings = Enum.GetValues(typeof(EnumWorkPlanGroup))
.Cast<EnumWorkPlanGroup>().ToList()
.Aggregate(new StringBuilder(),
(sb,en)=> sb.Append(string.Format("{0} = {1}|",en.ToString().Replace('_',' '),(int)en)),
sb=>sb.ToString().Trim('|',' '));
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = enumStrings;
//ui.MasterForm.SingleForm.FormName = "fWorkPlan";
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "FromTime", "lblFromTime", "");
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.DTPicker, "", "dtpFromTime", "FromTime", 20, 120);
//ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
//ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 50;
//ui.MasterForm.SingleForm.FormName = "fWorkPlan";
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "ToTime", "lblToTime", "");
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.DTPicker, "", "dtpToTime", "ToTime", 20, 120);
//ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
//ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 50;
ui.MasterForm.SingleForm.Source = new WorkPlanGroup();
ui.MasterForm.SingleForm.Caption = "Work Plan Group";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showDivisions()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Division.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Divisions";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fDivisions";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fDivision";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtName", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new Division();
ui.MasterForm.SingleForm.Caption = "Division";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showLeaves()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Leave.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Leaves";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Description");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fLeaves";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fLeave";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Description", "lblDescription", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Description", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "", "lblRemarksNeeded", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Check, "Remarks Mandatory", "chkRemarksNeeded", "RemarksNeeded", 20, 130);
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "", "lblBalanceCalculationRequired", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Check, "Balance Calculation Required", "chkBalanceCalculationRequired", "IsBalanceCalculationNeeded", 20, 130);
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "", "lblAutoLeaveReason", "");
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Check, "Auto Leave Reason", "chkAutoLeaveReason", "AutoLeaveReason", 20, 130);
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "", "lblIsEarnedLeave", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Check, "Earned Leave", "chkIsEarnedLeave", "IsEarnedLeave", 20, 130);
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "", "lblIsHalfDayLeave", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Check, "Allow Halfday Leave", "chkIsHalfdayLeave", "IsHalfDayLeave", 20, 130);
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "", "lblIsCompensatoryLeave", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Check, "Compensatory Leave", "chkIsCompensatoryLeave", "IsCompensatoryLeave", 20, 130);
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Applicable For", "lblAppFor", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboApplicableFor", "ApplicableFor", 20, 130);
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Enum ;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Regardless = 0|Male = 1|Female = 2";
ui.MasterForm.SingleForm.Source = new Leave();
ui.MasterForm.SingleForm.Caption = "Leave";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showLeaveYears()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(LeaveYear.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Leave Years";
ui.MasterForm.Listviewcloumns.Add("Start Date", "StartDate");
ui.MasterForm.Listviewcloumns.Add("End Date", "EndDate");
ui.MasterForm.Listviewcloumns.Add("IsCurrent", "IsCurrent");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fLeaveYears";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Start Date", "lblStartDate", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.DTPicker, "", "dtpStartDate", "StartDate", 20, 120);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.FormName = "fLeaveYear";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "End Date", "lblEndDate", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.DTPicker, "", "dtpEndDate", "EndDate", 20, 120);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Is Current", "lblIsCurrent", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Check, "", "chkIsCurrent", "IsCurrent", 20, 130);
ui.MasterForm.SingleForm.Source = new LeaveYear();
ui.MasterForm.SingleForm.Caption = "LeaveYear";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showAsset()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Asset.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Asset";
ui.MasterForm.Listviewcloumns.Add("Section", "Section");
ui.MasterForm.Listviewcloumns.Add("Action", "Name");
ui.MasterForm.Listviewcloumns.Add("Responsible 1", "AssignUserNo1");
ui.MasterForm.Listviewcloumns.Add("Responsible 2", "AssignUserNo2");
ui.MasterForm.FormName = "fAssets";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fAsset";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Action", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtName", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Section", "Section", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtSection", "Section", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Res Employee 1", "ResponsibleEmployee1", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtEmployee1", "AssignUserNo1", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Res Employee 2", "ResponsibleEmployee2", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtEmployee2", "AssignUserNo2", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Description", "Description", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Description", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 150;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Is Linemanager", "lblIsLinemanager", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Check, "", "chkIsLinemanager", "IsLinemanager", 20, 130);
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Item Type", "lblAssetType", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboAssetType", "AssetType", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 50;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Enum;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Asset=1|Other Item=2";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Exit Clearance Required", "lblDefaultItem", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Check, "", "chkexitClearance", "DefaultItem", 20, 120);
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Purchase Date", "lblPurchaseDate", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.DTPicker, "", "dtpPurchaseDate", "BuyTime", 20, 120);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Purchase Price", "lblPurchasePrice", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.NumText, "", "numPurchaseDate", "BuyPrice", 20, 120);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Source = new Asset();
ui.MasterForm.SingleForm.Caption = "Asset";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showCompanies()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Company.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Companies";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fCompanies";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fCompany";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtName", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new Company();
ui.MasterForm.SingleForm.Caption = "Company";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showFunctions()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Function.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Functions";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fFunctions";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fFunction";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtName", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new Function();
ui.MasterForm.SingleForm.Caption = "Function";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showFestivalBonusProjections()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(FestivalBonusProjection.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Festival Bonus Projections";
ui.MasterForm.Listviewcloumns.Add("Basic Month", "BasicMonth");
ui.MasterForm.Listviewcloumns.Add("No of Basic", "NoofBasic");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fFestivalBonusProjections";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Bonus Month", "lblBasicMonth", "");
//ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 40;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboBonus", "BasicMonth", 20, 130);
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Enum;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "January = 1|February = 2|March = 3|April = 4|May = 5|June = 6|July = 7|August = 8|September = 9|October = 10|November = 11|December = 12";
ui.MasterForm.SingleForm.FormName = "fFestivalBonusProjection";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "No of Bonus", "lblNoofBasic", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.NumText, "", "numNoofBasic", "NoofBasic", 20, 100);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 40;
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Check, "Is Active", "chkActive", "Status");
//ui.MasterForm.SingleForm.Controls.LastAddedControl.PositionX = 120;
ui.MasterForm.SingleForm.Source = new FestivalBonusProjection();
ui.MasterForm.SingleForm.Caption = "Festival Bonus Projection";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showTaxAdjustments()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(TaxAdjustment.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Tax Adjustments";
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Type", "TaxType");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fTaxAdjustments";
ui.MasterForm.SingleForm.FormName = "fTaxAdjustment";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Tax Type", "lblType", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboType", "TaxType", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 50;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Enum;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Inc_SalaryIncome=6|Dec_SalaryIncome=7|Inc_AnnualIncome=8|Dec_AnnualIncome=9|Inc_GrossTax=11|Dec_GrossTax=12";
//ui.MasterForm.SingleForm.Controls["cboType"].CboBox.DisplayName = "Normal=1|Slab=2|AnyAmount=3";
ui.MasterForm.SingleForm.Source = new TaxAdjustment();
ui.MasterForm.SingleForm.Caption = "Tax Adjustment";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showJVType()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(JVType.Get(EnumStatus.Active));
ui.MasterForm.Caption = "JV Types";
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fJVTypes";
ui.MasterForm.Caption = "JV Types";
ui.MasterForm.SingleForm.FormName = "fJVType";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new JVType();
ui.MasterForm.SingleForm.Caption = "JV Type";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showFSHead()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(FSHead.Get(EnumStatus.Active));
ui.MasterForm.Caption = "FSHeads";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("IsTaxable", "IsTaxable");
ui.MasterForm.FormName = "fFSHeads";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
bool bvalid = ConfigurationManager.GetBoolValue("fshead", "codeautogenerate", EnumConfigurationType.Logic);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsCodeAutoGenerated = bvalid;
ui.MasterForm.SingleForm.FormName = "fFSHead";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "IsTaxable", "lblIsTaxable", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Check, "", "chkTaxable", "IsTaxable", 20, 300);
ui.MasterForm.SingleForm.Source = new FSHead();
ui.MasterForm.SingleForm.Caption = "FSHead";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void ShowResultType()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(ResultType.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Result Types";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Description", "Description");
ui.MasterForm.FormName = "fResultTypes";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fResultType";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Description", "Description", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Description", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new ResultType();
ui.MasterForm.SingleForm.Caption = "Result Type";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showOPIItems()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(OpiItem.Get(EnumOpiType.Provision, EnumStatus.Active));
ui.MasterForm.Caption = "Provision Items";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Type", "OpiType");
ui.MasterForm.FormName = "fOPIItems";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
bool bvalid = ConfigurationManager.GetBoolValue("opiprovisionitem", "codeautogenerate", EnumConfigurationType.Logic);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsCodeAutoGenerated = bvalid;
ui.MasterForm.SingleForm.FormName = "fOPIItem";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtName", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.FormName = "fOPIItem";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Provision Type", "lblType", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboType", "OpiType", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 50;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Enum;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Provision=1";
ui.MasterForm.SingleForm.Source = new OpiItem();
ui.MasterForm.SingleForm.Caption = "OPIItem";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showOPIPaymentItems()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(OpiItem.Get(EnumOpiType.Payment, EnumStatus.Active));
ui.MasterForm.Caption = "Payment Items";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Type", "OpiType");
ui.MasterForm.FormName = "fOPIPaymentItems";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
bool bvalid = ConfigurationManager.GetBoolValue("opipaymentitem", "codeautogenerate", EnumConfigurationType.Logic);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsCodeAutoGenerated = bvalid;
ui.MasterForm.SingleForm.FormName = "fOPPaymentIItem";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtName", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.FormName = "fOPPaymentIItem";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Payment Type", "lblType", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboType", "OpiType", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 50;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Enum;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Payment=2";
ui.MasterForm.SingleForm.Source = new OpiItem();
ui.MasterForm.SingleForm.Caption = "OPIItem";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showOGPositionType()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(OGPositionType.Get(EnumStatus.Active));
ui.MasterForm.Caption = "OGPositionTypes";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fOGPositionTypes";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fOGPositionType";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtName", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Position Type", "lblPositionType", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboPType", "PositionType", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 50;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Enum;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "CEO=1 | HOHR=2 | DH=3 | BM=4 | MAN-COM=5| Trusty=7 | Others=6 ";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Unique Position", "lblIsUnique", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Check, "", "chkIsUniquePosition", "IsUniquePosition", 20, 130);
ui.MasterForm.SingleForm.Source = new OGPositionType();
ui.MasterForm.SingleForm.Caption = "OGPositionType";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showSkillLevel()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(SkillLevel.Get(EnumStatus.Active));
ui.MasterForm.Caption = "SkillLevels";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fSkillLevels";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fSkillLevel";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtName", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new SkillLevel();
ui.MasterForm.SingleForm.Caption = "SkillLevel";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showSkill()
{
try
{
UICreator ui = new UICreator(enumUIType.TreeView);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Skill.GetParents(EnumStatus.Active));
// XML Logic configuration file will contain the
// description of the Treeview( Number of Tier, Tier's name) with the
// tag name 'ui.MasterForm.Caption'
ui.MasterForm.Caption = "Skill";
ui.MasterForm.TreeView.RootNodeText = "Skill";
ui.MasterForm.TreeView.PropertyNames = "Name";
ui.MasterForm.TreeView.ConfigNodeName = "Skill";
ui.MasterForm.FormName = "fSkills";
ui.MasterForm.SingleForm.FormName = "fSkill";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 20, 100);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new Skill();
ui.MasterForm.SingleForm.Caption = "Skill";
ui.MasterForm.SingleForm.Source = new Skill();
ui.MasterForm.SingleForm.Caption = "Skill";
this.TreeViewConfiguration(ui);
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void ShowDocType()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(HRDoc.Get( EnumStatus.Active));
// XML Logic configuration file will contain the
// description of the Treeview( Number of Tier, Tier's name) with the
// tag name 'ui.MasterForm.Caption'
ui.MasterForm.Caption = "Loan Documents";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fLoanDocs";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fLoanDoc";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtName", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Description", "Description", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Description", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new HRDoc();
ui.MasterForm.SingleForm.Caption = "Loan Documents";
this.TreeViewConfiguration(ui);
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
internal void showDesktopRole(EnumSystemType enumSystemType)
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Role.GetDesktopRole(EnumStatus.Active));
ui.MasterForm.GetFunctionName = "GetDesktopRole";
ui.MasterForm.Caption = "Roles";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fRoles";
ui.MasterForm.SingleForm.FormName = "fRole";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Description", "Description", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription1", "Description", 20, 300);
ui.MasterForm.SingleForm.Source = new Role();
ui.MasterForm.SingleForm.Caption = "Role";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void ShowITInvestment()
{
// frmEmpITInvestment empITInvestment = new frmEmpITInvestment();
// empITInvestment.ShowDialog();
}
public void showQuestionSetup()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(HRJoiningQuestionary.Get(EnumStatus.Active));
ui.MasterForm.Caption = "QuestionSetup";
ui.MasterForm.Listviewcloumns.Add("QuestionNo", "QuestionNo", 10, 10);
ui.MasterForm.Listviewcloumns.Add("IsPrimary", "IsPrimary");
ui.MasterForm.Listviewcloumns.Add("Question Description", "Description", 100, 100);
ui.MasterForm.FormName = "fQuestionSetups";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "QuestionNo", "lblQuestionNo", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtQuestionNo", "QuestionNo", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fQuestionSetup";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "IsPrimary", "lblIsPrimary", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboIsPrimary", "IsPrimary", 20, 220);
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Enum;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "YES = 1 | NO = 0";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Question", "lblQuestion", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "Description", "Description", 30, 220);
//ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 200;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "DataType", "lblDataType", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboDataType", "AnsDatatype", 40, 220);
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Enum;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "None = 0 | INT = 1 | STRING = 2 | DATETIME = 3";
//ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 10;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.Source = new HRJoiningQuestionary();
ui.MasterForm.SingleForm.Caption = "QuestionSetup";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void ShowAppraisalPoint()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(AppraisalPoint.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Appraisal Point Setup";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "AppraisalPoint";
ui.MasterForm.SingleForm.FormName = "fAppraisalPoint";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "Code", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.FormName = "fAppraisalPoint";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtName", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new AppraisalPoint();
ui.MasterForm.SingleForm.Caption = "AppraisalPoint";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showComplains()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Complain.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Complaints";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Description", "Description");
ui.MasterForm.FormName = "fComplaints";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fComplain";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Description", "Description", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtName", "Description", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new Complain();
ui.MasterForm.SingleForm.Caption = "Complain";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showPunishments()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Punishment.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Punishments";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Description", "Description");
ui.MasterForm.FormName = "fPunishments";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fPunishment";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Description", "Description", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtName", "Description", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new Punishment();
ui.MasterForm.SingleForm.Caption = "Punishment";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showVendors()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(Vendor.Get());
ui.MasterForm.Caption = "Vendors";
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Vendor Type", "VendorType");
ui.MasterForm.FormName = "fVendors";
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
//ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
//ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
//ui.MasterForm.SingleForm.Controls.LastAddedControl.IsCodeAutoGenerated = false;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "lblName", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 80;
ui.MasterForm.SingleForm.FormName = "fVendor";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Address", "lblAddress", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtAddress", "Address", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = false;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Email Address", "lblEAddress", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtEAddress", "EmailAddress", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = false;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Telephone No", "Telephone", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtTele", "Telephone", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = false;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Mobile No", "Mobile", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtMobile", "Mobile", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = false;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Contact Person", "lblContactPerson", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtContactPerson", "ContactPerson", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = false;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Balance", "lblBalance", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.NumText, "", "txtBalance", "Balance", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = false;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Vendor Type", "lblVendorType", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboVendorType", "VendorType", 20, 200);
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Enum;
ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName =Vendor.GetVendorTypeForCreateUI();
ui.MasterForm.SingleForm.Source = new Vendor();
ui.MasterForm.SingleForm.Caption = "Vendor";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showQuestionCategorys()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(QuestionCategory.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Question Categories";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Description", "Description");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fQuestionCategorys";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 20, 100);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 20;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsCodeAutoGenerated = false;
ui.MasterForm.SingleForm.FormName = "fQuestionCategory";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Description", "Description", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Description", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Check, "Is Active", "chkActive", "Status");
//ui.MasterForm.SingleForm.Controls.LastAddedControl.PositionX = 120;
ui.MasterForm.SingleForm.Source = new QuestionCategory();
ui.MasterForm.SingleForm.Caption = "Question Category";
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Status", "lblStatus", "");
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboStatus", "Status",0,200);
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Enum;
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Active=1|InActive=2";
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Collection;
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Name";
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DataPropertyName = "ID";
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.AddComboSource(Category.Get());
ui.MasterForm.SingleForm.Source = new QuestionCategory();
ui.MasterForm.SingleForm.Caption = "Question Category";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showSurveyCategorys()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(SurveyCategory.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Survey Categories";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Description", "Description");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fSurveyCategorys";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 20, 100);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 20;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsCodeAutoGenerated = false;
ui.MasterForm.SingleForm.FormName = "fSurveyCategory";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Description", "Description", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Description", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Check, "Is Active", "chkActive", "Status");
//ui.MasterForm.SingleForm.Controls.LastAddedControl.PositionX = 120;
ui.MasterForm.SingleForm.Source = new SurveyCategory();
ui.MasterForm.SingleForm.Caption = "Survey Category";
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Status", "lblStatus", "");
//ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Combo, "", "cboStatus", "Status",0,200);
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Enum;
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Active=1|InActive=2";
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.PopulatedFrom = enmCboPopulatedFrom.Collection;
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DisplayName = "Name";
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.DataPropertyName = "ID";
//ui.MasterForm.SingleForm.Controls.LastAddedControl.CboBox.AddComboSource(Category.Get());
ui.MasterForm.SingleForm.Source = new SurveyCategory();
ui.MasterForm.SingleForm.Caption = "Servey Category";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
#region Training Functions
public void showTrainingType()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(TrainingType.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Training Types";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fTrainingTypes";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fTrainingType";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new TrainingType();
ui.MasterForm.SingleForm.Caption = "Training Type";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
public void showNatureOfTraining()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(NatureOfTraining.Get(EnumStatus.Active));
ui.MasterForm.Caption = "Nature of Trainings";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fNatureOfTrainings";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fNatureOfTraining";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new NatureOfTraining();
ui.MasterForm.SingleForm.Caption = "Nature of Training";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
//public void showTrainingScheduleStatus()
//{
// try
// {
// UICreator ui = new UICreator(enumUIType.Tabular);
// ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
// ui.MasterForm.CopyCollList(TrainingScheduleStatus.Get());
// ui.MasterForm.Caption = "Training Schedule Statuses";
// ui.MasterForm.Listviewcloumns.Add("Name", "Name");
// ui.MasterForm.FormName = "fTrainingScheduleStatuses";
// ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
// ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Name", 20, 300);
// ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
// ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
// ui.MasterForm.SingleForm.FormName = "fTrainingScheduleStatus";
// ui.MasterForm.SingleForm.Source = new TrainingScheduleStatus();
// ui.MasterForm.SingleForm.Caption = "Training Schedule Status";
// ui.CreatForm();
// }
// catch (Exception ex)
// {
// System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
// }
//}
public void showTrainingCostHead()
{
try
{
UICreator ui = new UICreator(enumUIType.Tabular);
ui.IncpUIConfig += new Ease.UICreator.UIConfiguration(IncorporateUIConfiguration);
ui.MasterForm.CopyCollList(TrainingCostHead.Get());
ui.MasterForm.Caption = "Training Cost Head";
ui.MasterForm.Listviewcloumns.Add("Code", "Code");
ui.MasterForm.Listviewcloumns.Add("Name", "Name");
//ui.MasterForm.Listviewcloumns.Add("Status", "Status");
ui.MasterForm.FormName = "fTrainingCostHead";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Code", "lblCode", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtCode", "Code", 10, 50);
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 6;
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsFocused = true;
ui.MasterForm.SingleForm.FormName = "fTrainingCostHead";
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Lebel, "Name", "Name", "");
ui.MasterForm.SingleForm.Controls.Add(BESFControlEnum.Text, "", "txtDescription", "Name", 20, 300);
ui.MasterForm.SingleForm.Controls.LastAddedControl.IsMustEntry = true;
ui.MasterForm.SingleForm.Controls.LastAddedControl.MaxLength = 100;
ui.MasterForm.SingleForm.Source = new TrainingCostHead();
ui.MasterForm.SingleForm.Caption = "Training Cost Head";
ui.CreatForm();
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message, "Problem on showing the From", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
}
}
#endregion
#endregion
}
}