public FrmAddDealers(string userName) { try { COM_MESSAGE = new CommonControls.Classes.ClsMessages(); VALIDATION = new CommonControls.Classes.ClsValidation(); COMM_METHODS = new CommonControls.Classes.ClsCommonMethods(); ADD_DEALER = new BLL.ClsDealerData(); MANAGEDB = new BLL.ClsMetaDataDbChanges(); InitializeComponent(); USERNAME = userName; btn_cancel.Visible = true; btn_create.Visible = true; btn_delete.Visible = false; btn_update.Visible = false; this.WindowState = FormWindowState.Maximized; this.ActiveControl = txt_dealerName; } catch (Exception ex) { COM_MESSAGE.exceptionMessage(ex.Message); } }
public FrmAddUnits(BLL.ClsUnitData unit, string userName) { try { COM_MESSAGE = new CommonControls.Classes.ClsMessages(); VALIDATION = new CommonControls.Classes.ClsValidation(); COMM_METHODS = new CommonControls.Classes.ClsCommonMethods(); ADD_UNIT = new BLL.ClsUnitData(); MANAGEDB = new BLL.ClsMetaDataDbChanges(); InitializeComponent(); IS_UPDATING = true; USERNAME = userName; btn_cancel.Visible = true; btn_create.Visible = false; btn_delete.Visible = true; btn_update.Visible = true; fillData(unit); this.StartPosition = FormStartPosition.CenterScreen; this.ActiveControl = txt_description; } catch (Exception ex) { COM_MESSAGE.exceptionMessage(ex.Message); } }
public FrmAddTax(BLL.ClsTaxData tax, string userName) { try { COM_MESSAGE = new CommonControls.Classes.ClsMessages(); VALIDATION = new CommonControls.Classes.ClsValidation(); COMM_METHODS = new CommonControls.Classes.ClsCommonMethods(); ADD_TAX = new BLL.ClsTaxData(); MANAGEDB = new BLL.ClsMetaDataDbChanges(); InitializeComponent(); IS_UPDATING = true; USERNAME = userName; btn_add.Visible = false; btn_delete.Visible = true; btn_update.Visible = true; fillData(tax); this.StartPosition = FormStartPosition.CenterScreen; this.ActiveControl = txt_symbol; } catch (Exception ex) { COM_MESSAGE.exceptionMessage(ex.Message); } }
public FrmAddTax(string userName) { try { COM_MESSAGE = new CommonControls.Classes.ClsMessages(); VALIDATION = new CommonControls.Classes.ClsValidation(); COMM_METHODS = new CommonControls.Classes.ClsCommonMethods(); ADD_TAX = new BLL.ClsTaxData(); MANAGEDB = new BLL.ClsMetaDataDbChanges(); InitializeComponent(); USERNAME = userName; btn_add.Visible = true; btn_delete.Visible = false; btn_update.Visible = false; grp_duration.Enabled = false; IS_UPDATING = false; IS_SUCCESS_MESSAGE = false; this.WindowState = FormWindowState.Maximized; this.ActiveControl = txt_symbol; } catch (Exception ex) { COM_MESSAGE.exceptionMessage(ex.Message); } }
/// <summary> /// when Update /// </summary> /// <param name="singleItemDetails"></param> /// <param name="userName"></param> public FrmAddItem(BLL.ClsItemData singleItemDetails, string userName) { COM_MESSAGE = new CommonControls.Classes.ClsMessages(); VALIDATION = new CommonControls.Classes.ClsValidation(); COMM_METHODS = new CommonControls.Classes.ClsCommonMethods(); CREATEITEM = new BLL.ClsItemData(); MANAGEDB = new BLL.ClsMetaDataDbChanges(); InitializeComponent(); txt_itemID.Text = singleItemDetails._itemId.ToString(); txt_itemCode.Text = singleItemDetails._itemCode.ToString(); txt_altName.Text = singleItemDetails._altName; txt_itemName.Text = singleItemDetails._itemName; txt_itemCode.Enabled = false; filldropDownLists(); dropDown_itemType.SelectedIndex = dropDown_itemType.FindString(singleItemDetails._itemTypeName); dropDown_stockUnit.SelectedIndex = dropDown_stockUnit.FindString(singleItemDetails._stockUnitName); dropDown_shopUnit.SelectedIndex = dropDown_shopUnit.FindString(singleItemDetails._shopUnitName); btn_cancel.Visible = true; btn_create.Visible = false; btn_delete.Visible = true; btn_update.Visible = true; IS_UPDATING = true; USERNAME = userName; this.StartPosition = FormStartPosition.CenterScreen; this.ActiveControl = txt_itemCode; }
public FrmEditUnits(string userName) { COM_MESSAGE = new CommonControls.Classes.ClsMessages(); MANAGEDB = new BLL.ClsMetaDataDbChanges(); COMM_METHODS = new CommonControls.Classes.ClsCommonMethods(); USERNAME = userName; InitializeComponent(); fillData(); }
public FrmAddItemType(string userName) { COM_MESSAGE = new CommonControls.Classes.ClsMessages(); VALIDATION = new CommonControls.Classes.ClsValidation(); COMM_METHODS = new CommonControls.Classes.ClsCommonMethods(); MANAGEDB = new BLL.ClsMetaDataDbChanges(); InitializeComponent(); USERNAME = userName; btn_update.Visible = false; btn_add.Visible = true; IS_UPDATING = false; }
public FrmAddItemType(BLL.ClsItemTypeData itemType, string userName) { COM_MESSAGE = new CommonControls.Classes.ClsMessages(); VALIDATION = new CommonControls.Classes.ClsValidation(); COMM_METHODS = new CommonControls.Classes.ClsCommonMethods(); MANAGEDB = new BLL.ClsMetaDataDbChanges(); USERNAME = userName; InitializeComponent(); txt_itemTypeID.Text = itemType._itemTypeId.ToString(); txt_itemType.Text = itemType._itemTypeName; IS_UPDATING = true; btn_update.Visible = true; btn_add.Visible = false; this.StartPosition = FormStartPosition.CenterScreen; this.ActiveControl = txt_itemType; }
public FrmAddDealers(BLL.ClsDealerData dealerDetails, string userName) { COM_MESSAGE = new CommonControls.Classes.ClsMessages(); VALIDATION = new CommonControls.Classes.ClsValidation(); COMM_METHODS = new CommonControls.Classes.ClsCommonMethods(); ADD_DEALER = new BLL.ClsDealerData(); MANAGEDB = new BLL.ClsMetaDataDbChanges(); InitializeComponent(); IS_UPDATING = true; USERNAME = userName; btn_cancel.Visible = true; btn_create.Visible = false; btn_delete.Visible = true; btn_update.Visible = true; fillData(dealerDetails); this.StartPosition = FormStartPosition.CenterScreen; this.ActiveControl = txt_dealerName; }