Beispiel #1
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.ClsInventoryManageDbChanges();

            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;

            dropDown_itemType.DataSource     = MANAGEDB.getItemTypeList();
            dropDown_itemType.DisplayMember  = "itemType";
            dropDown_itemType.ValueMember    = "typeId";
            dropDown_itemType.BindingContext = this.BindingContext;
            dropDown_itemType.SelectedIndex  = dropDown_itemType.FindString(singleItemDetails._itemTypeName);

            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;
        }
Beispiel #2
0
        /// <summary>
        /// when create item
        /// </summary>
        /// <param name="userName"></param>
        public FrmAddItem(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.ClsInventoryManageDbChanges();

            InitializeComponent();

            txt_itemID.Text = MANAGEDB.getMaxItemId().ToString();
            //fill data for itemType from db
            dropDown_itemType.DataSource     = MANAGEDB.getItemTypeList();
            dropDown_itemType.DisplayMember  = "itemType";
            dropDown_itemType.ValueMember    = "typeId";
            dropDown_itemType.BindingContext = this.BindingContext;
            dropDown_itemType.SelectedIndex  = -1;

            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_itemCode;
        }
Beispiel #3
0
        public FrmSelectDealer(string userName)
        {
            COM_MESSAGE  = new CommonControls.Classes.ClsMessages();
            MANAGEDB     = new BLL.ClsInventoryManageDbChanges();
            COMM_METHODS = new CommonControls.Classes.ClsCommonMethods();
            USERNAME     = userName;

            InitializeComponent();

            fillData();
        }
Beispiel #4
0
        public FrmSelectStockEntry(string userName, string itemCode, string releaseQty, string stockIdQty, List <string> StockIdList)
        {
            COM_MESSAGE  = new CommonControls.Classes.ClsMessages();
            MANAGEDB     = new BLL.ClsInventoryManageDbChanges();
            COMM_METHODS = new CommonControls.Classes.ClsCommonMethods();
            USERNAME     = userName;

            InitializeComponent();
            STOCK_ID_LIST = StockIdList;

            fillData(itemCode, releaseQty, stockIdQty);
        }
Beispiel #5
0
        public FrmEditStockIntake(string userName)
        {
            COM_MESSAGE  = new CommonControls.Classes.ClsMessages();
            MANAGEDB     = new BLL.ClsInventoryManageDbChanges();
            COMM_METHODS = new CommonControls.Classes.ClsCommonMethods();
            USERNAME     = userName;
            //SEARCHTYPE = 1;
            SEARCH = string.Empty;

            InitializeComponent();

            fillGrid(SEARCH);
        }
Beispiel #6
0
        public FrmAdjustStock(string userName)
        {
            COM_MESSAGE  = new CommonControls.Classes.ClsMessages();
            VALIDATION   = new CommonControls.Classes.ClsValidation();
            COMM_METHODS = new CommonControls.Classes.ClsCommonMethods();
            STOCKDATA    = new BLL.ClsStockData();
            MANAGEDB     = new BLL.ClsInventoryManageDbChanges();

            InitializeComponent();

            this.WindowState   = FormWindowState.Maximized;
            this.ActiveControl = txt_itemCode;
        }
Beispiel #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.ClsInventoryManageDbChanges();

            InitializeComponent();

            USERNAME           = userName;
            btn_update.Visible = false;
            btn_add.Visible    = true;
            IS_UPDATING        = false;
        }
Beispiel #8
0
        public FrmStockIntake(BLL.ClsStockData stockData, string userName)
        {
            COM_MESSAGE  = new CommonControls.Classes.ClsMessages();
            VALIDATION   = new CommonControls.Classes.ClsValidation();
            COMM_METHODS = new CommonControls.Classes.ClsCommonMethods();
            STOCKDATA    = new BLL.ClsStockData();
            MANAGEDB     = new BLL.ClsInventoryManageDbChanges();

            InitializeComponent();

            IS_UPDATING = true;
            USERNAME    = userName;

            this.StartPosition = FormStartPosition.CenterScreen;
            this.ActiveControl = txt_itemCode;
        }
Beispiel #9
0
        public FrmStockIntake(string userName)
        {
            COM_MESSAGE  = new CommonControls.Classes.ClsMessages();
            VALIDATION   = new CommonControls.Classes.ClsValidation();
            COMM_METHODS = new CommonControls.Classes.ClsCommonMethods();
            STOCKDATA    = new BLL.ClsStockData();
            MANAGEDB     = new BLL.ClsInventoryManageDbChanges();

            InitializeComponent();

            dateTime_stockEntry.Value = DateTime.Today;
            USERNAME = userName;
            fillGrid();

            this.WindowState   = FormWindowState.Maximized;
            this.ActiveControl = txt_itemCode;
        }
Beispiel #10
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.ClsInventoryManageDbChanges();
            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;
        }
Beispiel #11
0
        public FrmReleaseStock(BLL.ClsReleaseStock releseStockData, string userName)
        {
            COM_MESSAGE  = new CommonControls.Classes.ClsMessages();
            VALIDATION   = new CommonControls.Classes.ClsValidation();
            COMM_METHODS = new CommonControls.Classes.ClsCommonMethods();
            STOCKDATA    = new BLL.ClsReleaseStock();
            MANAGEDB     = new BLL.ClsInventoryManageDbChanges();

            InitializeComponent();

            IS_UPDATING = true;
            USERNAME    = userName;

            this.StartPosition = FormStartPosition.CenterScreen;
            this.ActiveControl = txt_itemCode;

            btn_add.Visible     = false;
            btn_Cancel.Visible  = true;
            btn_clear.Visible   = true;
            btn_release.Visible = false;
        }
Beispiel #12
0
        public FrmReleaseStock(string userName)
        {
            COM_MESSAGE  = new CommonControls.Classes.ClsMessages();
            VALIDATION   = new CommonControls.Classes.ClsValidation();
            COMM_METHODS = new CommonControls.Classes.ClsCommonMethods();
            STOCKDATA    = new BLL.ClsReleaseStock();
            MANAGEDB     = new BLL.ClsInventoryManageDbChanges();

            InitializeComponent();

            dt_delivery.Value = DateTime.Today;
            USERNAME          = userName;

            this.WindowState   = FormWindowState.Maximized;
            this.ActiveControl = btn_selectDestination;

            txt_billAmt.Text    = 0.ToString();
            dt_delivery.MinDate = DateTime.Today;
            btn_add.Visible     = true;
            btn_Cancel.Visible  = false;
            btn_clear.Visible   = true;
            btn_release.Visible = true;
        }