示例#1
0
        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);
            }
        }
示例#2
0
文件: FrmAddUnits.cs 项目: sammmk/ERP
        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);
            }
        }
示例#3
0
文件: FrmAddTax.cs 项目: sammmk/ERP
        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);
            }
        }
示例#4
0
文件: FrmAddTax.cs 项目: sammmk/ERP
        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);
            }
        }
示例#5
0
        /// <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;
        }
示例#6
0
        public FrmEditUnits(string userName)
        {
            COM_MESSAGE  = new CommonControls.Classes.ClsMessages();
            MANAGEDB     = new BLL.ClsMetaDataDbChanges();
            COMM_METHODS = new CommonControls.Classes.ClsCommonMethods();
            USERNAME     = userName;

            InitializeComponent();

            fillData();
        }
示例#7
0
        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;
        }
示例#8
0
        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;
        }
示例#9
0
        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;
        }