Ejemplo n.º 1
0
        private void ClearAllExceptDefault()
        {
            lblAdjustNo.Text = string.Empty;

            CtrlUtil.ClearControlData(
                //lblAdjustNo,
                txtMasterNo,
                txtItemDesc,
                txtCustomerName,
                cboStoredLoc,
                txtLotNo,
                txtPackNo,
                txtFGNo,
                txtCustomerLotNo,
                txtOnhandQty,
                txtAdjustWeight,
                txtAdjustQty,
                txtRemark,
                cboInventoryUM,
                cboReasonCode

                );

            rdoIncrease.Checked = true;
        }
Ejemplo n.º 2
0
        private void EnableLotControl()
        {
            //Clear Lot
            CtrlUtil.ClearControlData(txtPackNo, txtLotNo, txtCustomerLotNo, txtFGNo);

            if (cboStoredLoc.SelectedIndex < 0)
            {
                return;
            }

            //----- Enable Customer Lot No ------//
            DealingConstraintDTO constriant = null;

            string strProcess = cboStoredLoc.SelectedValue.ToString();

            constriant = bizConstraint.LoadDealingConstraint(strProcess.ToNZString());

            if (constriant != null && constriant.ENABLE_LOT_FLAG.StrongValue == 1)
            {
                CtrlUtil.EnabledControl(rdoIncrease.Checked, txtLotNo, txtCustomerLotNo, txtFGNo);
                CtrlUtil.EnabledControl(true, btnLotNo);
            }
            else
            {
                CtrlUtil.EnabledControl(false, txtLotNo, btnLotNo, txtCustomerLotNo, txtFGNo);
            }
        }
Ejemplo n.º 3
0
        private void ClearAllControlExceptDefault()
        {
            CtrlUtil.ClearControlData(txtDeliveryNo, cboCustomerCode, txtInvoiceNo, dtInvoiceDate,
                                      cboTermOfPayment, dtPaymentDueDate, txtSubTotal, txtVat, txtVatTotal, txtTotal);

            CtrlUtil.ClearControlData(txtRemark, cboCustomerCode);
            // Set Default Date
            SysConfigBIZ sysBiz        = new SysConfigBIZ();
            SysConfigDTO argScreenInfo = new SysConfigDTO();

            argScreenInfo.SYS_GROUP_ID = DataDefine.eSYSTEM_CONFIG.TRN350.SYS_GROUP_ID;
            argScreenInfo.SYS_KEY      = (NZString)DataDefine.eSYSTEM_CONFIG.TRN350.SYS_KEY.DEFAULT_DATE.ToString();
            dtInvoiceDate.Value        = sysBiz.GetDefaultDateForScreen(argScreenInfo);

            argScreenInfo.SYS_KEY       = (NZString)DataDefine.eSYSTEM_CONFIG.TRN350.SYS_KEY.DEFAULT_VAT.ToString();
            txtVat.Decimal              = decimal.Parse(sysBiz.LoadByPK(DataDefine.eSYSTEM_CONFIG.TRN350.SYS_GROUP_ID, "DEFAULT_VAT".ToNZString()).CHAR_DATA);
            shtCustomerOrder.Rows.Count = 0;
            if (shtCustomerOrder.DataSource != null)
            {
                DataTable dt = shtCustomerOrder.DataSource as DataTable;
                dt.Rows.Clear();
            }

            //m_SelectedDataRow = new SelectedDataRow();
        }
Ejemplo n.º 4
0
        private void ClearAll()
        {
            CtrlUtil.ClearControlData(lblWorkResultNo, dtWorkResultDate, cboShiftCls);
            CtrlUtil.ClearControlData(txtItemCode, txtPartNo, txtCustomerName, evoComboBox1, txtRemark);
            CtrlUtil.ClearControlData(txtLotNo);

            ClearSpread();
        }
Ejemplo n.º 5
0
 private void ClearAllControlExceptDefault()
 {
     CtrlUtil.ClearControlData(txtIssueNo, cboFromLoc, cboToLoc, txtRemark
                               , cboForCustomer, cboSubType, txtRefDocNo, txtJobOrderNo);
     shtIssueList.Rows.Count = 0;
     if (m_uidm.DATA_VIEW != null)
     {
         m_uidm.DATA_VIEW.Rows.Clear();
     }
 }
Ejemplo n.º 6
0
        private void cboStoredLoc_TextChanged(object sender, EventArgs e)
        {
            if (string.Empty.Equals(cboStoredLoc.Text))
            {
                txtOnhandQty.Decimal = 0;
                txtAdjustQty.Decimal = !(string.Empty.Equals(txtAdjustWeight.Text.Trim())) ? 0 : txtAdjustQty.Decimal;

                //Clear Lot
                CtrlUtil.ClearControlData(txtPackNo, txtLotNo, txtCustomerLotNo, txtFGNo);
                CtrlUtil.EnabledControl(false, txtLotNo, btnLotNo, txtCustomerLotNo, txtFGNo);
            }
        }
Ejemplo n.º 7
0
        private void ClearAllControl()
        {
            CtrlUtil.ClearControlData(txtDeliveryNo, cboCustomerCode, txtInvoiceNo, dtInvoiceDate,
                                      cboTermOfPayment, dtPaymentDueDate, txtSubTotal, txtVat, txtVatTotal, txtTotal);
            //rdoShipType_Ship.Checked = true;
            shtCustomerOrder.Rows.Count = 0;
            if (shtCustomerOrder.DataSource != null)
            {
                DataTable dt = shtCustomerOrder.DataSource as DataTable;
                dt.Rows.Clear();
            }

            //m_SelectedDataRow = new SelectedDataRow();
        }
Ejemplo n.º 8
0
        private void ClearAll()
        {
            CtrlUtil.ClearControlData(dtReceiveDate, txtInvoiceNo, txtPONo, txtRemark
                                      , cboStoredLoc, cboSupplierCode);
            lblReceiveNo.Text = string.Empty;

            shtView.RowCount = 0;
            if (m_model.DATA_VIEW != null)
            {
                m_model.DATA_VIEW.Rows.Clear();
            }

            rdoReceive.Checked = true;
        }
Ejemplo n.º 9
0
        private void ClearData(bool isClearList)
        {
            CtrlUtil.ClearControlData(txtPartNo, txtPartName, chkNoQty, txtLotNo, txtLotSize);
            txtPartNo.SelectedItemData        = null;
            txtPartNo.SelectedItemProcessData = null;
            txtNumberofCopies.Double          = 1;
            //rdoTagTypeFG.Checked = true;

            if (isClearList)
            {
                shtView.Rows.Count = 0;
            }
            txtPartNo.Focus();
            txtPartNo.Select();
        }
Ejemplo n.º 10
0
        private void ClearAllExceptDefault()
        {
            CtrlUtil.ClearControlData(txtInvoiceNo, txtPONo, txtRemark, cboSupplierCode);
            lblReceiveNo.Text = string.Empty;

            shtView.RowCount = 0;
            if (m_model.DATA_VIEW != null)
            {
                m_model.DATA_VIEW.Rows.Clear();
            }

            rdoReceive.Checked = true;

            CtrlUtil.FocusControl(txtInvoiceNo);
        }
Ejemplo n.º 11
0
        private void ClearAllExceptDefaultValue()
        {
            m_ClearControlBySystem = true;
            CtrlUtil.ClearControlData(lblWorkResultNo, dtWorkResultDate, cboShiftCls);
            CtrlUtil.ClearControlData(txtItemCode, txtPartNo, txtCustomerName, evoComboBox1, txtRemark);
            CtrlUtil.ClearControlData(txtLotNo);

            lblWorkResultNo.Text = string.Empty;
            shtView.RowCount     = 0;
            if (shtView.DataSource != null)
            {
                ((DataTable)shtView.DataSource).Rows.Clear();
            }
            m_ClearControlBySystem = false;

            CalculateTotalQty();
        }
Ejemplo n.º 12
0
        private void tsbCancel_Click(object sender, EventArgs e)
        {
            // Do you want to save?
            if (MessageDialog.ShowConfirmation(this, Message.LoadMessage(Messages.eConfirm.CFM9003.ToString()), MessageDialogButtons.YesNo) == MessageDialogResult.No)
            {
                return;
            }

            m_rootBOMNode.Nodes.Clear();
            m_rootBOMNode = new BOMNode();

            shtView.RowCount   = 0;
            shtView.DataSource = null;

            CtrlUtil.ClearControlData(txtItemCD, txtItemDesc);
            CtrlUtil.FocusControl(txtItemCD);

            UpdateUpDownButton();
        }
Ejemplo n.º 13
0
        private void SetScreenMode(eScreenMode mode)
        {
            m_eScreenMode = mode;
            switch (mode)
            {
            case eScreenMode.Idle:
                CtrlUtil.ClearControlData(this.Controls);
                CtrlUtil.EnabledControl(false, this.Controls);
                CtrlUtil.EnabledControl(true, chkItemFlag, txtRemark, btnSourceOrder, btnRun);
                CtrlUtil.VisibleControl(false, picWaiting);
                this.ClearSpread(shtViewHeader, shtViewDetail);
                SetDefaultControl();
                InitialSpread();
                break;

            case eScreenMode.View:
                CtrlUtil.EnabledControl(false, this.Controls);
                CtrlUtil.EnabledControl(true, chkItemFlag, txtRemark, btnSourceOrder, btnRun);
                CtrlUtil.VisibleControl(false, picWaiting);
                CtrlUtil.EnabledControl(chkItemFlag.Checked, txtItemCodeFrom, txtItemCodeTo, btnSearchItemFrom, btnSearchItemTo);

                //if (shtViewHeader.Columns.Count > 0)
                //{
                //    SpreadVisibleColumn(false, shtViewHeader, (int)eHeader.ItemCLS,
                //                                              (int)eHeader.OrderProcessCLS,
                //                                              (int)eHeader.InvUMCLS,
                //                                              (int)eHeader.OrderUMCLS,
                //                                              (int)eHeader.MaxCapacity,
                //                                              (int)eHeader.InventoryQty
                //        );
                //}
                //if (shtViewDetail.Columns.Count > 0)
                //{
                //    SpreadVisibleColumn(false, shtViewDetail, (int)eDetail.ItemCD, (int)eDetail.OrderLocCD, (int)eDetail.RecordNo);
                //}
                break;

            case eScreenMode.Simulate:
                CtrlUtil.EnabledControl(false, this.Controls);
                break;
            }
        }
Ejemplo n.º 14
0
        private void SetScreenMode(eScreenMode mode)
        {
            switch (mode)
            {
            case eScreenMode.ADD:

                txtNumberOfBox.Int = 1;
                CtrlUtil.ClearControlData(txtMasterNo, txtPartNo, txtPackNo, txtItemDesc, txtTotalQty, txtFGNo, txtTagNo);
                CtrlUtil.ClearControlData(shtView);

                CtrlUtil.EnabledControl(true, txtMasterNo, txtFGNo, txtNumberOfBox, txtTagNo);
                CtrlUtil.EnabledControl(false, txtPartNo, txtItemDesc, txtTotalQty, txtPackNo);

                m_keyboardSpread.StartBind();
                shtView.OperationMode = OperationMode.Normal;

                break;
            }

            m_screenMode = mode;
        }
Ejemplo n.º 15
0
 private void ClearControl()
 {
     CtrlUtil.ClearControlData(this.Controls);
     shtView.RowCount    = 0;
     shtView.ColumnCount = 0;
 }