private void model_cmb_SelectedIndexChanged(object sender, EventArgs e) { ModelVo mvo = (ModelVo)model_cmb.SelectedItem; ValueObjectList <LineVo> linevo = (ValueObjectList <LineVo>)DefaultCbmInvoker.Invoke(new GetLineMoCbm(), new LineVo { LineId = mvo.ModelId }); line_cmb.DisplayMember = "LineCode"; line_cmb.DataSource = linevo.GetList(); line_cmb.ResetText(); ValueObjectList <ProcessWorkVo> ProcessWorkvolist = (ValueObjectList <ProcessWorkVo>)DefaultCbmInvoker.Invoke(new GetProcessWorkCbm(), new ProcessWorkVo { ProcessWorkId = mvo.ModelId }); process_cmb.DisplayMember = "ProcessWorkName"; process_cmb.DataSource = ProcessWorkvolist.GetList(); }
private void machine_cmb_SelectedIndexChanged(object sender, EventArgs e) { if (machine_cmb.SelectedItem != null) { MachineVo mvo = (MachineVo)machine_cmb.SelectedItem; ValueObjectList <DefectiveReasonVo> defectivereasonvo = (ValueObjectList <DefectiveReasonVo>)DefaultCbmInvoker.Invoke(new GetCauseAndDefectiveCbm(), new DefectiveReasonVo { DefectiveReasonId = mvo.MachineId }); cause_cmb.DisplayMember = "DefectiveReasonName"; cause_cmb.DataSource = defectivereasonvo.GetList(); ValueObjectList <ProdutionWorkContentVo> respmachinevolist = (ValueObjectList <ProdutionWorkContentVo>)DefaultCbmInvoker.Invoke(new GetActicAndContentCbm(), new ProdutionWorkContentVo { ProdutionWorkContentId = mvo.MachineId }); action_cmb.DisplayMember = "ProdutionWorkContentName"; action_cmb.DataSource = respmachinevolist.GetList(); } }
private void selectdata() { ValueObjectList <DrawingVo> getList = (ValueObjectList <DrawingVo>)DefaultCbmInvoker.Invoke(new SearchDrawingCbm(), new DrawingVo { DeviceCode = device_code_txt.Text, ModelCode = model_cmb.Text, ModelId = ((ModelVo)this.model_cmb.SelectedItem).ModelId, DrawType = drawing_cmb.Text, DrawCode = version_cmb.Text, MachineName = Machine_cmb.Text, Department = depart_cmb.Text, RegistrationUserCode = user_cmb.Text, TimeFrom = timefrom_dtp.Value, TimeTo = timeto_dtp.Value }); draw_dgv.DataSource = getList.GetList(); }
/// <summary> /// Fills all inspection Item records to gridview control /// </summary> private void GridBind() { Update_btn.Enabled = Delete_btn.Enabled = InspectionSpecification_btn.Enabled = InspectionTestInstruction_btn.Enabled = false; InspectionItemVo conditionInVo = new Vo.InspectionItemVo(); conditionInVo.InspectionProcessId = InspectionProcessId; InspectionItem_dgv.DataSource = null; ValueObjectList <InspectionItemVo> outVo = null; try { outVo = (ValueObjectList <InspectionItemVo>)base.InvokeCbm(new GetInspectionItemMasterMntCbm(), conditionInVo, false); } catch (Framework.ApplicationException exception) { popUpMessage.ApplicationError(exception.GetMessageData(), Text); logger.Error(exception.GetMessageData()); } if (outVo == null || outVo.GetList() == null || outVo.GetList().Count == 0) { messageData = new MessageData("mmci00006", Properties.Resources.mmci00006, null); logger.Info(messageData); // popUpMessage.Information(messageData, Text); return; } ValueObjectList <InspectionItemVo> FormattedoutVo = new ValueObjectList <InspectionItemVo>(); FormattedoutVo = FormDisplayOrder(outVo, 0, new ValueObjectList <InspectionItemVo>()); BindingList <List <UserVo> > userBind = new BindingList <List <UserVo> >(); InspectionItem_dgv.AutoGenerateColumns = false; BindingSource bindingSource1 = new BindingSource(FormattedoutVo.GetList(), null); if (bindingSource1 != null && bindingSource1.Count > 0) { InspectionItem_dgv.DataSource = bindingSource1; } ChangeGridDataColorForRelationDataCheck(); InspectionItem_dgv.ClearSelection(); }
/// <summary> /// To save shift rest time /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Ok_btn_Click(object sender, EventArgs e) { if (LineRestTime_dgv.RowCount == 0) { return; } ValueObjectList <LineRestTimeVo> inVo = new ValueObjectList <LineRestTimeVo>(); inVo.SetNewList((List <LineRestTimeVo>)LineRestTime_dgv.DataSource); foreach (LineRestTimeVo restVo in inVo.GetList()) { restVo.LineId = Convert.ToInt32(Line_cmb.SelectedValue); if (restVo.PlanRestMinutes == null) { restVo.PlanRestMinutes = 0; } } UpdateResultVo outVo = null; try { Cursor.Current = Cursors.WaitCursor; outVo = (UpdateResultVo)base.InvokeCbm(new AddLineRestTimeCbm(), inVo, false); Cursor.Current = Cursors.Default; } catch (Framework.ApplicationException exception) { Cursor.Current = Cursors.Default; popUpMessage.ApplicationError(exception.GetMessageData(), Text); logger.Error(exception.GetMessageData()); } if (outVo == null) { return; } messageData = new MessageData("mmci00002", Properties.Resources.mmci00002, null); logger.Info(messageData); popUpMessage.Information(messageData, Text); Clear_btn_Click(sender, e); }
private void GridBind() { try { TranferRequestVo invo = new TranferRequestVo() { FunctionDeptName = function_cmb.Text, DepartmentName = department_cbm.Text, SentReceive = sent_rei_cmb.Text, }; ValueObjectList <TranferRequestVo> listvo = (ValueObjectList <TranferRequestVo>)DefaultCbmInvoker.Invoke(new Cbm.SearchTranferRequestVCBCbm(), invo); TranferRequest_dgv.DataSource = listvo.GetList(); } catch (Framework.ApplicationException exception) { popUpMessage.ApplicationError(exception.GetMessageData(), Text); logger.Error(exception.GetMessageData()); } }
private void GridBind() { try { WareHouseMainVo whvos = new WareHouseMainVo() { AssetCode = asset_Code_txt.Text, RankCode = rank_code_cbm.Text, AssetType = asset_type_cbm.Text, AccountCodeCode = detail_position_cmb.Text, AccountLocationCode = select_search_cbm.Text, AssetInvoice = invoice_cbm.Text, AssetModel = asset_model_cbm.Text, AfterLocationCd = location_cbm.Text, AssetName = asset_name_cbm.Text, DetailPositionCd = detail_position_cmb.Text, LabelStatus = labelstatus_cmb.Text, Net_Value = net_value_cmb.Text, AssetPO = AssetPO_cmb.Text, }; if (checkdata()) { if (select_search_cbm.Text == "Search History") { ValueObjectList <WareHouseMainVo> listvo = (ValueObjectList <WareHouseMainVo>)DefaultCbmInvoker.Invoke(new SearchWareHouseMainCbm(), whvos); warehouse_main_dgv.DataSource = listvo.GetList(); } else if (select_search_cbm.Text == "Search List") { ValueObjectList <WareHouseMainVo> listvo = (ValueObjectList <WareHouseMainVo>)DefaultCbmInvoker.Invoke(new SearchListWareHouseMainCbm(), whvos); warehouse_main_dgv.DataSource = listvo.GetList(); invertory_alarm(); counter(); } // calculator(); } } catch (Framework.ApplicationException exception) { popUpMessage.ApplicationError(exception.GetMessageData(), Text); logger.Error(exception.GetMessageData()); } }
public ValueObject Execute(TransactionContext trxContext, ValueObject vo) { ValueObjectList <LineRestTimeVo> inVo = (ValueObjectList <LineRestTimeVo>)vo; UpdateResultVo outVo = new UpdateResultVo(); UpdateResultVo deleteVo = (UpdateResultVo)deleteLineRestTimeMasterMntCbm.Execute(trxContext, inVo.GetList()[0]); foreach (LineRestTimeVo currentVo in inVo.GetList()) { if (currentVo.PlanRestMinutes != null && currentVo.PlanRestMinutes != 0) { UpdateResultVo resultVo = (UpdateResultVo)addLineRestTimeMasterMntCbm.Execute(trxContext, currentVo); outVo.AffectedCount = resultVo.AffectedCount; } } return(outVo); }
/* * private void pictureBox1_MouseClick(object sender, MouseEventArgs e) * { * string check = ""; * if (Checkdata()) * { * GA1ModelVo outVo = new GA1ModelVo(); * GA1ModelVo inVo = new GA1ModelVo(); * if (e.Button == MouseButtons.Right) * { * inVo = new GA1ModelVo() * { * A90Model = ((ModelVo)this.cmb_model.SelectedItem).ModelCode, * A90Line = ((GA1ModelVo)this.cmb_line.SelectedItem).LineCode, * A90Barcode = txt_barcode.Text, * A90Shipping = false, * Date = DateTime.Today, * Time = DateTime.Parse(DateTime.Now.ToShortTimeString()), * FactoryCode = cmb_machine.Text, * A90ThurstStatus = "OK", * RegistrationUserCode = UserData.GetUserData().UserName, * }; * check = "OK"; * } * if (e.Button == MouseButtons.Left) * { * inVo = new GA1ModelVo() * { * A90Model = ((ModelVo)this.cmb_model.SelectedItem).ModelCode, * A90Line = ((GA1ModelVo)this.cmb_line.SelectedItem).LineCode, * A90Barcode = txt_barcode.Text, * A90Shipping = false, * Date = DateTime.Today, * Time = DateTime.Parse(DateTime.Now.ToShortTimeString()), * FactoryCode = cmb_machine.Text, * A90ThurstStatus = "NG", * RegistrationUserCode = UserData.GetUserData().UserName, * }; * check = "NG"; * } * outVo = (GA1ModelVo)DefaultCbmInvoker.Invoke(new Cbm.AddGA1ModelThurstCbm(), inVo); * GridBind(); * if (check == "OK") * { * pb_OK.Visible = true; * pb_NG.Visible = false; * lbl_status.Text = "CHECKED"; * timer1.Enabled = true; * lbl_status.ForeColor = System.Drawing.Color.Green; * } * else if (check == "NG") * { * pb_OK.Visible = false; * pb_NG.Visible = true; * lbl_status.Text = "CHECKED"; * timer1.Enabled = true; * lbl_status.ForeColor = System.Drawing.Color.Red; * } * else * { * lbl_status.Text = "WAITING"; * messageData = new MessageData("mmcc00005", Properties.Resources.mmcc00005, lbl_barcode.Text); * popUpMessage.Warning(messageData, Text); * txt_barcode.Focus(); * } * txt_barcode.Text = ""; * } * } */ private void GridBind() { try { GA1ModelVo calldgv = new GA1ModelVo() { A90Model = cmb_model.Text, A90Line = cmb_line.Text, }; ValueObjectList <GA1ModelVo> listvo = (ValueObjectList <GA1ModelVo>)DefaultCbmInvoker.Invoke(new SearchThurstDGVCbm(), calldgv); dgv_thurst.DataSource = listvo.GetList(); } catch (Framework.ApplicationException exception) { popUpMessage.ApplicationError(exception.GetMessageData(), Text); logger.Error(exception.GetMessageData()); } }
private void model_cmb_SelectedIndexChanged(object sender, EventArgs e) { if (model_cmb.Text.Length != 0) { //WarehouseVTVo inVo = new AccountMainVo() //{ // UserTem = user_location_code_txt.Text //}; ValueObjectList <WarehouseVTVo> model = (ValueObjectList <WarehouseVTVo>)DefaultCbmInvoker.Invoke(new SearchMachineCbm(), new WarehouseVTVo { MachineModel = model_cmb.Text }); machine_name_cmb.DisplayMember = "MachineName"; machine_name_cmb.DataSource = model.GetList(); } else { machine_name_cmb.Text = ""; } }
public ValueObject Execute(TransactionContext trxContext, ValueObject vo) { ValueObjectList <MoldItemVo> inVo = (ValueObjectList <MoldItemVo>)vo; UpdateResultVo resultVo = null; foreach (MoldItemVo molditem in inVo.GetList()) { MoldItemVo MoldItemOutVo = (MoldItemVo)updateMoldItemDao.Execute(trxContext, molditem); if (resultVo == null) { resultVo = new UpdateResultVo(); } resultVo.AffectedCount += MoldItemOutVo.AffectedCount; } return(resultVo); }
private void AddRankForm_Load(object sender, EventArgs e) { //lower_txt.Select(); ValueObjectList <OvenBarcodeVo> modelVo = (ValueObjectList <OvenBarcodeVo>)DefaultCbmInvoker.Invoke(new GetModelOvenLS12Cbm(), new OvenBarcodeVo()); model_cbm.DisplayMember = "Model"; model_cbm.DataSource = modelVo.GetList(); model_cbm.Text = ""; if (vo.RangeId > 0) { model_cbm.Text = vo.Model; model_cbm.Enabled = false; process_cbm.Text = vo.Process; process_cbm.Enabled = false; upper_txt.Text = vo.Upper; lower_txt.Text = vo.Lower; } }
private void ProdutionWorkContentForm_Load(object sender, EventArgs e) { try { volist = (ValueObjectList <ProdutionWorkContentTypeVo>)base.InvokeCbm(new GetProdutionWorkContentTypeCbm(), new ProdutionWorkContentTypeVo(), false); ProdutionWorkContentType_cmb.DataSource = volist.GetList(); ProdutionWorkContentType_cmb.DisplayMember = "ProdutionWorkContentTypeName"; ProdutionWorkContentType_cmb.ValueMember = "ProdutionWorkContentTypeId"; ProdutionWorkContentType_cmb.SelectedIndex = -1; ProdutionWorkContentType_cmb.Text = string.Empty; ProdutionWorkContentCode_txt.Select(); } catch (Framework.ApplicationException exception) { popUpMessage.ApplicationError(exception.GetMessageData(), Text); logger.Error(exception.GetMessageData()); } ProdutionWorkContentCode_txt.Select(); }
private void AddUpdateReportDownTimeFrom_Load(object sender, EventArgs e) { ValueObjectList <ModelVo> modelvolist = (ValueObjectList <ModelVo>)DefaultCbmInvoker.Invoke(new GetModelCbm(), new ModelVo()); model_cmb.DisplayMember = "ModelCode"; BindingSource b1 = new BindingSource(modelvolist.GetList(), null); model_cmb.DataSource = b1; model_cmb.Text = ""; ProcessVo processvo = (ProcessVo)DefaultCbmInvoker.Invoke(new GetProcessMasterMntCbm(), new ProcessVo()); process_cmb.DisplayMember = "ProcessName"; BindingSource b2 = new BindingSource(processvo.ProcessListVo, null); process_cmb.DataSource = b2; process_cmb.Text = ""; MachineVo machinevo = (MachineVo)DefaultCbmInvoker.Invoke(new GetMachineMasterMntCbm(), new MachineVo()); machine_cmb.DisplayMember = "MachineName"; BindingSource b4 = new BindingSource(machinevo.MachineListVo, null); machine_cmb.DataSource = b4; machine_cmb.Text = ""; process_work_cmb.Text = ""; line_cmb.Text = ""; cause_cmb.Text = ""; action_cmb.Text = ""; if (reportDownTimeVo.DowntimeReportId > 0) { model_cmb.Text = reportDownTimeVo.ModelCode; machine_cmb.Enabled = false; process_cmb.Text = reportDownTimeVo.ProcessName; process_work_cmb.Text = reportDownTimeVo.ProcessWorkName; line_cmb.Text = reportDownTimeVo.LineCode; cause_cmb.Text = reportDownTimeVo.DefectiveReasonName; action_cmb.Text = reportDownTimeVo.ProductionWorkContentName; remake_txt.Text = reportDownTimeVo.Remakes; } }
private void UpdateAssetForm_Load(object sender, EventArgs e) { dgvAddAssetList.Visible = checkAddFrm; btnAddAsset.Visible = checkAddFrm; btnImport.Visible = checkAddFrm; ValueObjectList <AssetMaster2019Vo> assetType = ((ValueObjectList <AssetMaster2019Vo>)DefaultCbmInvoker.Invoke(new GetAssetTypeCbm(), new AssetMaster2019Vo())); cmbAssetType.DisplayMember = "asset_type"; cmbAssetType.DataSource = assetType.GetList(); cmbAssetType.Text = null; txtAssetCode.Text = lbAssetCode.Text = voInfo.asset_cd; lbAssetNo.Text = voInfo.asset_no.ToString(); numAssetNo.Value = voInfo.asset_no; txtAssetName.Text = lbAssetName.Text = voInfo.asset_name; txtAssetModel.Text = lbAssetModel.Text = voInfo.asset_model; txtAssetSerial.Text = lbAssetSerial.Text = voInfo.asset_serial; txtAssetInvoice.Text = lbInvoice.Text = voInfo.asset_invoice; txtAssetPO.Text = lbAssetPO.Text = voInfo.asset_po; txtAcqCost.Text = lbAcqCost.Text = voInfo.acquistion_cost.ToString(); lbAcqDate.Text = voInfo.acquistion_date.ToString("yyyy-MM-dd"); dtpAcqDate.Value = voInfo.acquistion_date; lbFactory.Text = voInfo.factory_cd; txtFactory.Text = UserData.GetUserData().FactoryCode; txtSupplier.Text = lbSupplier.Text = voInfo.asset_supplier; lbLife.Text = voInfo.asset_life.ToString(); numLife.Value = (decimal)voInfo.asset_life; cmbAssetType.Text = lbAssetType.Text = voInfo.asset_type; switch (voInfo.label_status) { case "Pasted": rbtnPasted.Checked = true; break; case "Not Paste": rbtnNotPaste.Checked = true; break; case "Cant Paste": rbtnCntPaste.Checked = true; break; } }
private void GridBind() { TransferVo transOutVo = new TransferVo(); TransferVo transVo = new TransferVo() { RegistrationUserCode = UserData.GetUserData().UserCode }; try { transOutVo = (TransferVo)DefaultCbmInvoker.Invoke(new GetRoleCbm(), transVo); string role = transOutVo.RegistrationUserCode; switch (role) { case "account": TransferVo trvo = new TransferVo() { UserName = UserData.GetUserData().UserName }; ValueObjectList <TransferVo> vo = (ValueObjectList <TransferVo>)DefaultCbmInvoker.Invoke(new LoadAllTransferListCbm(), trvo); TranferInfo_dgv.DataSource = vo.GetList(); break; default: TransferVo trvos = new TransferVo() { UserName = UserData.GetUserData().UserName }; ValueObjectList <TransferVo> listvo = (ValueObjectList <TransferVo>)DefaultCbmInvoker.Invoke(new LoadTransferListCbm(), trvos); TranferInfo_dgv.DataSource = listvo.GetList(); break; } } catch (Framework.ApplicationException exception) { popUpMessage.ApplicationError(exception.GetMessageData(), Text); logger.Error(exception.GetMessageData()); } }
private void GridBind(bool data, DateTimePicker dtpfrom, DateTimePicker dtptto) { try { GA1ModelVo calldgv = new GA1ModelVo() { DateTimeFrom = dtpfrom.Value, DateTimeTo = dtptto.Value, DaTa = data, }; ValueObjectList <GA1ModelVo> listvo = (ValueObjectList <GA1ModelVo>)DefaultCbmInvoker.Invoke(new Cbm.SearchGA1DGVCbm(), calldgv); dgv_thurst.DataSource = listvo.GetList(); } catch (Framework.ApplicationException exception) { popUpMessage.ApplicationError(exception.GetMessageData(), Text); logger.Error(exception.GetMessageData()); } }
private void AddRankForm_Load(object sender, EventArgs e) { //lower_txt.Select(); ValueObjectList <RangeVo> modelVo = (ValueObjectList <RangeVo>)DefaultCbmInvoker.Invoke(new GetModelRangeCbm(), new RangeVo()); model_cbm.DisplayMember = "Model"; model_cbm.DataSource = modelVo.GetList(); model_cbm.Text = ""; if (vo.RangeId > 0) { model_cbm.Text = vo.Model; model_cbm.Enabled = false; line_cbm.Text = vo.Line; line_cbm.Enabled = false; upper_txt.Text = vo.Upper; lower_txt.Text = vo.Lower; TreeView(); } }
private void GridBindList() { try { WarehouseVTListVo whvos = new WarehouseVTListVo() { MachineSerial = warehouse_vt_dgv.Rows[0].Cells[7].Value.ToString(), CheckTime = int.Parse(checktime_cmb.Text), }; ValueObjectList <WarehouseVTListVo> listvo = (ValueObjectList <WarehouseVTListVo>)DefaultCbmInvoker.Invoke(new Cbm.SearchMachineListVTCbm(), whvos); warehouse_list_dgv.DataSource = listvo.GetList(); } catch (Framework.ApplicationException exception) { popUpMessage.ApplicationError(exception.GetMessageData(), Text); logger.Error(exception.GetMessageData()); } }
private void GridBind() { try { WarehouseVTVo whvos = new WarehouseVTVo() { MachineSerial = machine_serial_cmb.Text, RFId = rfid_txt.Text }; ValueObjectList <WarehouseVTVo> listvo = (ValueObjectList <WarehouseVTVo>)DefaultCbmInvoker.Invoke(new Cbm.SearchMachineCbm(), whvos); warehouse_vt_dgv.DataSource = listvo.GetList(); } catch (Framework.ApplicationException exception) { popUpMessage.ApplicationError(exception.GetMessageData(), Text); logger.Error(exception.GetMessageData()); } }
private void user_location_code_txt_TextChanged(object sender, EventArgs e) { if ((user_location_code_txt.Text.Length == 13) || (user_location_code_txt.Text.Length == 10)) { WareHouseVo inVo = new WareHouseVo() { UserTem = user_location_code_txt.Text }; ValueObjectList <UserLocationVo> userlocationvo = (ValueObjectList <UserLocationVo>)DefaultCbmInvoker.Invoke(new GetUserLocationCbm(), new UserLocationVo { UserLocationCode = inVo.UserTem }); user_location_name_cbm.DisplayMember = "UserLocationName"; user_location_name_cbm.DataSource = userlocationvo.GetList(); } else { user_location_name_cbm.Text = ""; user_location_name_cbm.SelectedItem = null; } }
private void AddProdutionWorkContentMasterForm_Load(object sender, EventArgs e) { ProdutionWorkContentType_cmb.DataSource = volist.GetList(); ProdutionWorkContentType_cmb.DisplayMember = "ProdutionWorkContentTypeName"; ProdutionWorkContentType_cmb.ValueMember = "ProdutionWorkContentTypeId"; if (vo.ProdutionWorkContentId > 0) { ProdutionWorkContentCode_txt.Text = vo.ProdutionWorkContentCode; ProdutionWorkContentName_txt.Text = vo.ProdutionWorkContentName; DisplayOrder_txt.Text = vo.DisplayOrder.ToString(); Remark_txt.Text = vo.Remark; ProdutionWorkContentType_cmb.Enabled = false; } else { DisplayOrder_txt.Enabled = false; } ProdutionWorkContentType_cmb.SelectedValue = vo.ProdutionWorkContentTypeId; ProdutionWorkContentType_cmb.Select(); }
private void ResponseMachineMasterForm_Load(object sender, EventArgs e) { try { ValueObjectList <ProdutionWorkContentVo> prodvo = (ValueObjectList <ProdutionWorkContentVo>)DefaultCbmInvoker.Invoke(getProdutionWorkContentCbm, new ProdutionWorkContentVo()); foreach (ProdutionWorkContentVo vo in prodvo.GetList()) { respmachine.Add(new RespMachine { mvo = vo, Selected = false, RespMachineID = 0 }); } BindingSource bds = new BindingSource(respmachine, null); RespMachine_dgv.DataSource = bds; MachineVo machinelist = (MachineVo)DefaultCbmInvoker.Invoke(getMachineMasterMntCbm, new MachineVo()); machinename_cmb.DisplayMember = "MachineName"; machinename_cmb.DataSource = machinelist.MachineListVo; machinename_cmb.SelectedIndex = -1; } catch { } //gfg }
private void Rank_Dep_btn_Click(object sender, EventArgs e) { account_depreciation_dgv.Visible = true; account_main_dgv.Visible = false; account_depreciation_dgv.DataSource = null; account_depreciation_dgv.Columns[0].HeaderText = "Rank Name"; try { AccountMainVo whvos = new AccountMainVo() { }; ValueObjectList <AccountMainVo> listvo = (ValueObjectList <AccountMainVo>)DefaultCbmInvoker.Invoke(new TotalRankDEPAccountMainCbm(), whvos); account_depreciation_dgv.DataSource = listvo.GetList(); } catch (Framework.ApplicationException exception) { popUpMessage.ApplicationError(exception.GetMessageData(), Text); logger.Error(exception.GetMessageData()); } }
private void unit_cmb_SelectedIndexChanged(object sender, EventArgs e) { no_cbm.Enabled = true; no_lbl.Enabled = true; try { //process asset code if (asset_code_txt.TextLength >= 10) { asset_code_txt.Text = asset_code_txt.Text.Substring(0, 10); start_depreciation_dtp.Enabled = true; } callvaluecost(sender, e); if (WareHouseMainVo.WareHouseMainId <= 0) { ValueObjectList <AssetVo> assetmodelvo1 = (ValueObjectList <AssetVo>)DefaultCbmInvoker.Invoke(new GetAssetCbm(), new AssetVo { AssetCode = asset_code_txt.Text }); no_cbm.DisplayMember = "AssetNo"; no_cbm.ValueMember = "AssetId"; no_cbm.DataSource = assetmodelvo1.GetList(); } else { ValueObjectList <AssetVo> assetmodelvo1 = (ValueObjectList <AssetVo>)DefaultCbmInvoker.Invoke(new GetAssetCbm(), new AssetVo { AssetCode = asset_code_txt.Text }); asset_model_cmb.DisplayMember = "AssetModel"; asset_model_cmb.DataSource = assetmodelvo1.GetList(); asset_model_cmb.DataSource = assetmodelvo1.GetList(); no_cbm.Enabled = false; } } catch (Framework.ApplicationException exception) { popUpMessage.ApplicationError(exception.GetMessageData(), Text); logger.Error(exception.GetMessageData()); return; } }
private void ModelLineMasterForm_Load(object sender, EventArgs e) { try { LineVo linevo = (LineVo)DefaultCbmInvoker.Invoke(getLineMasterMntCbm, new LineVo()); ValueObjectList <ModelVo> modellist = (ValueObjectList <ModelVo>)DefaultCbmInvoker.Invoke(getModelCbm, new ModelVo()); modelname_cmb.DisplayMember = "ModelName"; modelname_cmb.DataSource = modellist.GetList(); modelname_cmb.SelectedIndex = -1; foreach (LineVo vo in linevo.LineListVo) { modeline.Add(new ModelLine { mvo = vo, Selected = false, ModelLineId = 0 }); } BindingSource bds = new BindingSource(modeline, null); Model_dgv.DataSource = bds; } catch { } //gfg }
private void model_cmb_SelectedIndexChanged(object sender, EventArgs e) { if (model_cmb.SelectedItem != null) { ModelVo mvo = (ModelVo)model_cmb.SelectedItem; ValueObjectList <DrawingVo> drawvolist = (ValueObjectList <DrawingVo>)DefaultCbmInvoker.Invoke(new GetDrawingModelCbm(), new DrawingVo { ModelId = mvo.ModelId }); drawing_cmb.DisplayMember = "DrawType"; drawing_cmb.DataSource = drawvolist.GetList(); drawing_cmb.Text = ""; ModelVo mdvo = (ModelVo)model_cmb.SelectedItem; ValueObjectList <DrawingVo> machinevolist = (ValueObjectList <DrawingVo>)DefaultCbmInvoker.Invoke(new GetMachineModelCbm(), new DrawingVo { ModelId = mdvo.ModelId }); Machine_cmb.DisplayMember = "MachineName"; Machine_cmb.DataSource = machinevolist.GetList(); Machine_cmb.Text = ""; } }
void GridBind() { try { MovingMachineVTVo inVo = new MovingMachineVTVo { MachineSerial = machine_serial_cmb.Text, ReceivedFactoryName = factory_received_cmb.Text, TranferFactoryName = factory_tranfer_cmb.Text, CodeStatus = code_status_cmb.Text, CodeName = code_name_cmb.Text, }; ValueObjectList <MovingMachineVTVo> listvo = (ValueObjectList <MovingMachineVTVo>)DefaultCbmInvoker.Invoke(new Cbm.SearchMovingVTCbm(), inVo); vt_search_moving_dgv.DataSource = listvo.GetList(); } catch (Framework.ApplicationException exception) { popUpMessage.ApplicationError(exception.GetMessageData(), Text); logger.Error(exception.GetMessageData()); } }
private void MovingMachineVTForm_Load(object sender, EventArgs e) { ValueObjectList <WarehouseVTVo> machineserial = (ValueObjectList <WarehouseVTVo>)DefaultCbmInvoker.Invoke(new GetMachineSerialCbm(), new WarehouseVTVo()); machine_serial_cmb.DisplayMember = "MachineSerial"; machine_serial_cmb.DataSource = machineserial.GetList(); machine_serial_cmb.Text = ""; // factory_tranfer_cmb FactoryVo factory_tranfer = (FactoryVo)DefaultCbmInvoker.Invoke(new GetFactoryMasterMntCbm(), new FactoryVo()); factory_tranfer_cmb.DisplayMember = "FactoryName"; factory_tranfer_cmb.DataSource = factory_tranfer.FactoryListVo; factory_tranfer_cmb.Text = ""; FactoryVo factory_received = (FactoryVo)DefaultCbmInvoker.Invoke(new GetFactoryMasterMntCbm(), new FactoryVo()); factory_received_cmb.DisplayMember = "FactoryName"; factory_received_cmb.DataSource = factory_received.FactoryListVo; factory_received_cmb.Text = ""; }
private void ModelProcessMasterForm_Load(object sender, EventArgs e) { try { ProcessVo processvo = (ProcessVo)DefaultCbmInvoker.Invoke(getProcessMasterMntCbm, new ProcessVo()); ValueObjectList <ModelVo> modellist = (ValueObjectList <ModelVo>)DefaultCbmInvoker.Invoke(getModelCbm, new ModelVo()); modelname_cmb.DisplayMember = "ModelName"; modelname_cmb.DataSource = modellist.GetList(); modelname_cmb.SelectedIndex = -1; foreach (ProcessVo vo in processvo.ProcessListVo) { modelprocess.Add(new ModelProcess { mvo = vo, Selected = false, ModelProcessId = 0 }); } BindingSource bds = new BindingSource(modelprocess, null); Process_dgv.DataSource = bds; } catch { } //gfg }