Example #1
0
        public FrmPurchaseIndent()
        {
            InitializeComponent();

            TxtGridParticular              = new MyGridPickListTextBox(Grid);
            TxtGridParticular.Validating  += new System.ComponentModel.CancelEventHandler(TxtGridParticular_Validating);
            TxtGridParticular.PickListType = MyGridPickListTextBox.ListType.Product;


            TxtGridAltQty              = new MyGridNumericTextBox(Grid);
            TxtGridAltQty.Validating  += new System.ComponentModel.CancelEventHandler(TxtGridAltQty_Validating);
            TxtGridAltQty.TextChanged += new System.EventHandler(TxtGridAltQty_TextChanged);

            TxtGridAltUOM = new MyGridPickListTextBox(Grid)
            {
                PickListType = MyGridPickListTextBox.ListType.ProductUnit
            };


            TxtGridQty             = new MyGridNumericTextBox(Grid);
            TxtGridQty.Validating += new System.ComponentModel.CancelEventHandler(TxtGridQty_Validating);
            TxtGridQtyUOM          = new MyGridPickListTextBox(Grid)
            {
                PickListType = MyGridPickListTextBox.ListType.ProductUnit
            };

            TxtGridNarration             = new MyGridTextBox(Grid);
            TxtGridNarration.Validating += new System.ComponentModel.CancelEventHandler(TxtGridNarration_Validating);

            GridControlMode(false);
            _GridControlMode = true;

            _IsSaveAndPrint = _objDocPrintSetting.CheckIsSaveAndPrint("PI");
        }
Example #2
0
 public FrmProductScheme()
 {
     InitializeComponent();
     TxtGridRate                = new MyGridNumericTextBox(Grid);
     TxtGridPercent             = new MyGridNumericTextBox(Grid);
     TxtGridRate.Validating    += new System.ComponentModel.CancelEventHandler(this.TxtGridRate_Validating);
     TxtGridPercent.Validating += new System.ComponentModel.CancelEventHandler(this.TxtGridPercent_Validating);
     GridControlMode(false);
 }
Example #3
0
        public FrmTerm(string Module, decimal BasicAmt, string ExistTermData, decimal Qty, int ProductId)
        {
            InitializeComponent();

            _ExistTermData = ExistTermData;
            _Module        = Module;
            _Qty           = Qty;
            _ProductId     = ProductId;
            _TotalBasicAmt = BasicAmt;

            TxtGridRatePercent             = new MyGridNumericTextBox(Grid);
            TxtGridRatePercent.Validating += new System.ComponentModel.CancelEventHandler(this.TxtGridRatePercent_Validating);

            TxtGridAmount             = new MyGridNumericTextBox(Grid);
            TxtGridAmount.Validating += new System.ComponentModel.CancelEventHandler(this.TxtGridAmount_Validating);

            GridControlMode(false);
            TxtBasicAmount.Text = BasicAmt.ToString();
        }
Example #4
0
        public FrmKOT()
        {
            InitializeComponent();
            TxtGridWaiter              = new MyGridPickListTextBox(Grid);
            TxtGridWaiter.Validating  += new System.ComponentModel.CancelEventHandler(TxtGridWaiter_Validating);
            TxtGridWaiter.PickListType = MyGridPickListTextBox.ListType.Waiter;

            TxtGridStartNo = new MyGridNumericTextBox(Grid);
            this.TxtGridStartNo.TextChanged += new System.EventHandler(this.TxtGridStartNo_TextChanged);
            TxtGridStartNo.Validating       += new System.ComponentModel.CancelEventHandler(this.TxtGridStartNo_Validating);

            TxtGridEndNo = new MyGridNumericTextBox(Grid);
            this.TxtGridEndNo.TextChanged += new System.EventHandler(this.TxtGridEndNo_TextChanged);
            TxtGridEndNo.Validating       += new System.ComponentModel.CancelEventHandler(this.TxtGridEndNo_Validating);

            TxtGridUsedNo = new MyGridNumericTextBox(Grid);
            this.TxtGridUsedNo.TextChanged += new System.EventHandler(this.TxtGridUsedNo_TextChanged);
            TxtGridUsedNo.Validating       += new System.ComponentModel.CancelEventHandler(this.TxtGridUsedNo_Validating);
        }
Example #5
0
        public FrmGodownTransfer()
        {
            InitializeComponent();
            _Tag = "";

            #region --------------------------------------------- Event Of Grid ---------------------------------------------
            TxtGridProductList              = new MyGridPickListTextBox(Grid);
            TxtGridProductList.Validating  += new System.ComponentModel.CancelEventHandler(TxtGridProductList_Validating);
            TxtGridProductList.PickListType = MyGridPickListTextBox.ListType.Product;

            TxtGridToGodown              = new MyGridPickListTextBox(Grid);
            TxtGridToGodown.Validating  += new System.ComponentModel.CancelEventHandler(TxtGridSubLedger_Validating);
            TxtGridToGodown.PickListType = MyGridPickListTextBox.ListType.GoDown;

            TxtGirdFromGodown             = new MyGridTextBox(Grid);
            TxtGirdFromGodown.Validating += new System.ComponentModel.CancelEventHandler(TxtGirdFromGodown_Validating);


            TxtGridDepartment              = new MyGridPickListTextBox(Grid);
            TxtGridDepartment.Validating  += new System.ComponentModel.CancelEventHandler(TxtGridDepartment_Validating);
            TxtGridDepartment.PickListType = MyGridPickListTextBox.ListType.Department;

            TxtGridAltQty = new MyGridNumericTextBox(Grid);
            this.TxtGridAltQty.TextChanged += new System.EventHandler(TxtGridAltQty_TextChanged);

            TxtGridAltUnit             = new MyGridTextBox(Grid);
            TxtGridAltUnit.Validating += new System.ComponentModel.CancelEventHandler(TxtGridAltUnit_Validating);

            TxtGridQty = new MyGridNumericTextBox(Grid);
            this.TxtGridQty.TextChanged += new System.EventHandler(TxtGridQty_TextChanged);

            TxtGridQtyUnit             = new MyGridTextBox(Grid);
            TxtGridQtyUnit.Validating += new System.ComponentModel.CancelEventHandler(TxtGridQtyUnit_Validating);

            TxtGridAmount = new MyGridNumericTextBox(Grid);
            this.TxtGridAmount.TextChanged += new System.EventHandler(TxtGridAmount_TextChanged);

            //GridControlMode(false);
            #endregion
        }