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; }
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); } }
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(); }
private void ClearAll() { CtrlUtil.ClearControlData(lblWorkResultNo, dtWorkResultDate, cboShiftCls); CtrlUtil.ClearControlData(txtItemCode, txtPartNo, txtCustomerName, evoComboBox1, txtRemark); CtrlUtil.ClearControlData(txtLotNo); ClearSpread(); }
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(); } }
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); } }
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(); }
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; }
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(); }
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); }
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(); }
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(); }
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; } }
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; }
private void ClearControl() { CtrlUtil.ClearControlData(this.Controls); shtView.RowCount = 0; shtView.ColumnCount = 0; }