protected override void Loading() { if (UserStatics.OptrType == "Test") { ctProcess.Enabled = false; label14.Text = "复测产量"; } ctProcess.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "工序"); ctProcess.DisplayMember = "Name"; ctGrouping.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "班组"); ctGrouping.DisplayMember = "Name"; ctRepairMonitor.DataSource = BllEquipmentDee.GetRepairMonitorByWorkShop(UserStatics.OptrType, UserStatics.WorkShop); ctRepairMonitor.DisplayMember = "Name"; ctGroupMonitor.DataSource = BllEquipmentDee.GetGroupMonitorByWorkShop(UserStatics.OptrType, UserStatics.WorkShop); ctGroupMonitor.DisplayMember = "Name"; ctOperator.DataSource = BllEquipmentDee.GetOperatorByWorkShop(UserStatics.OptrType, UserStatics.WorkShop); ctOperator.DisplayMember = "Name"; if (!IsAdd) { var obj = EquipmentDee.FindById(long.Parse(ItemID)); FrmAddEditBindComboBoxText.BindObjectToControls(obj, tabPage1); } }
protected override void Loading() { if (UserStatics.OptrType == "Test") { ctProcess.Enabled = false; ctEquipmentNo.DataSource = BllEquipmentVariation.GetEquipmentNoByProcess(UserStatics.OptrType, "测试"); ctEquipmentNo.DisplayMember = "EquipmentNo"; } ctProcess.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "工序"); ctProcess.DisplayMember = "Name"; ctVariationType.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "变更类别"); ctVariationType.DisplayMember = "Name"; ctVariationReason.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "变更原因"); ctVariationReason.DisplayMember = "Name"; ctDistributor.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "变更安排人"); ctDistributor.DisplayMember = "Name"; ctDistributeDate.Value = DateTime.Now; }
protected override void Loading() { if (UserStatics.OptrType == "Test") { ctIsIsolated.Checked = false; ctIsIsolated.Enabled = false; ctRetestEquipment.DataSource = BllEquipmentProductHandle.GetEquipmentNo(UserStatics.OptrType); ctRetestEquipment.DisplayMember = "EquipmentNo"; } else { ctRetestEquipment.Enabled = false; } ctProductHandledConfirm.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "处理确认"); ctProductHandledConfirm.DisplayMember = "Name"; ctWhoHandled.DataSource = BllEquipmentProductHandle.GetWhoHandledByWorkShop(UserStatics.OptrType, UserStatics.WorkShop); ctWhoHandled.DisplayMember = "Name"; var obj = EquipmentMaintenance.FindById(long.Parse(ItemID)); FrmAddEditBindComboBoxText.BindObjectToControls(obj, tabPage1); ctHandleDate.Value = UserStatics.GetSqlServerDateTime(); }
protected override void Loading() { ctAccepter2.DataSource = BllEquipmentRepairSecond.GetWhoRepairByWorkShop(UserStatics.OptrType, UserStatics.WorkShop); ctAccepter2.DisplayMember = "Name"; ctAssist2.DataSource = BllEquipmentRepairSecond.GetWhoRepairByWorkShop(UserStatics.OptrType, UserStatics.WorkShop); ctAssist2.DisplayMember = "Name"; ctResultConfirm.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "效果确认"); ctResultConfirm.DisplayMember = "Name"; ctFailureType.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "故障分类"); ctFailureType.DisplayMember = "Name"; ctProductHandle.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "产品处理"); ctProductHandle.DisplayMember = "Name"; ctMonitor2.DataSource = BllEquipmentRepairSecond.GetRepairMonitorByWorkShop(UserStatics.OptrType, UserStatics.WorkShop); ctMonitor2.DisplayMember = "Name"; ctRestoreDate2.Value = UserStatics.GetSqlServerDateTime(); var obj = EquipmentMaintenance.FindById(long.Parse(ItemID)); FrmAddEditBindComboBoxText.BindObjectToControls(obj, tabPage1); }
protected override void Loading() { if (UserStatics.OptrType == "Test") { ctModeNo.Enabled = false; ctProductType.Enabled = false; } ctProductType.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "适应产品"); ctProductType.DisplayMember = "Name"; ctWhoUninstalled.DataSource = BllTechnologicalEquipment.GetWhoRepairByWorkShop(UserStatics.OptrType, UserStatics.WorkShop); ctWhoUninstalled.DisplayMember = "Name"; ctTeHandle.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "工装处理"); ctTeHandle.DisplayMember = "Name"; ctSupplier.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "供应商"); ctSupplier.DisplayMember = "Name"; var obj = TechnologicalEquipment.FindById(long.Parse(ItemID)); FrmAddEditBindComboBoxText.BindObjectToControls(obj, tabPage1); ctUninstallDate.Value = UserStatics.GetSqlServerDateTime(); OwnTE = ctTeNo.Text; OwnWhoInstalled = ctWhoInstalled.Text; }
private void FrmSupplyChainPos_Load(object sender, EventArgs e) { TableForSelectItem = BllBaseInfoMaterial.GetTable(UserStatics.OptrType); bsSelectItem.DataSource = TableForSelectItem; ctMealTableName.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "桌号"); ctMealTableName.DisplayMember = "Name"; InitialPos(); }
protected override void Loading() { ctAccepter2.DataSource = BllEquipmentVariationHandle2.GetWhoRepairByWorkShop(UserStatics.OptrType, UserStatics.WorkShop); ctAccepter2.DisplayMember = "Name"; ctResultConfirm.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "变更效果确认"); ctResultConfirm.DisplayMember = "Name"; ctFinishDate2.Value = DateTime.Now; var obj = EquipmentVariation.FindById(long.Parse(ItemID)); FrmAddEditBindComboBoxText.BindObjectToControls(obj, tabPage1); }
protected override void Loading() { ctEquipmentNo.DataSource = BllEquipmentOffline.GetEquipmentNo(UserStatics.OptrType); ctEquipmentNo.DisplayMember = "EquipmentNo"; ctEquipmentType.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "设备分类"); ctEquipmentType.DisplayMember = "Name"; ctWhoApplied.DataSource = BllEquipmentOffline.GetWhoNotice(UserStatics.OptrType); ctWhoApplied.DisplayMember = "Name"; ctOfflineDate.Value = UserStatics.GetSqlServerDateTime(); }
protected override void Loading() { if (UserStatics.OptrType != "Package") { ctModeNo.Enabled = false; } if (UserStatics.OptrType == "Package" || UserStatics.OptrType == "Assembly") { ctTestStation.Enabled = false; ctChannelCount.Enabled = false; } if (UserStatics.OptrType == "Test") { ctProcess.Enabled = false; } ctEquipmentType.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "设备分类"); ctEquipmentType.DisplayMember = "Name"; ctProductAdaptation.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "适应产品"); ctProductAdaptation.DisplayMember = "Name"; ctCondition.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "使用状态"); ctCondition.DisplayMember = "Name"; ctManagementGroup.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "管理分组"); ctManagementGroup.DisplayMember = "Name"; ctProcess.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "工序"); ctProcess.DisplayMember = "Name"; ctDeviceClass.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "设备分级"); ctDeviceClass.DisplayMember = "Name"; ctStatisticalClass.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "统计分类"); ctStatisticalClass.DisplayMember = "Name"; ctManufacturer.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "制造厂家"); ctManufacturer.DisplayMember = "Name"; if (!IsAdd) { var obj = EquipmentInformation.FindById(long.Parse(ItemID)); FrmAddEditBindComboBoxText.BindObjectToControls(obj, tabPage1); } }
protected override void Loading() { if (!IsAdd) { ctOfflineResultConfirm.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "离线效果确认"); ctOfflineResultConfirm.DisplayMember = "Name"; ctOfflineWhoRepaired.DataSource = BllEquipmentOffline.GetWhoNotice(UserStatics.OptrType); ctOfflineWhoRepaired.DisplayMember = "Name"; var obj = EquipmentOffline.FindById(long.Parse(ItemID)); FrmAddEditBindComboBoxText.BindObjectToControls(obj, tabPage1); ctOfflineRepairDate.Value = UserStatics.GetSqlServerDateTime(); } }
protected override void InitControls() { ctBegin.Value = DateTime.Now.AddMonths(-1); ctEnd.Value = DateTime.Now; ctAccepter.DataSource = BllEquipmentAllQuery.GetWhoRepair(UserStatics.OptrType); ctAccepter.DisplayMember = "Name"; ctGroupMonitor.DataSource = BllEquipmentAllQuery.GetGroupMonitor(UserStatics.OptrType); ctGroupMonitor.DisplayMember = "Name"; ctManageType.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "管理分类"); ctManageType.DisplayMember = "Name"; ctMonitor.DataSource = BllEquipmentAllQuery.GetRepairMonitor(UserStatics.OptrType); ctMonitor.DisplayMember = "Name"; }
protected override void Loading() { if (UserStatics.OptrType == "Test") { ctProcess.Enabled = false; ctModeNo.Enabled = false; ctTestSystem.DataSource = BllEquipmentNotice.GetEquipmentType(UserStatics.OptrType, "测试系统"); ctTestSystem.DisplayMember = "EquipmentNo"; ctTester.DataSource = BllEquipmentNotice.GetEquipmentType(UserStatics.OptrType, "测试仪"); ctTester.DisplayMember = "EquipmentNo"; //机台号每个工序都会不同 ctEquipmentNo.DataSource = BllEquipmentNotice.GetEquipmentNoByProcess(UserStatics.OptrType, "测试"); ctEquipmentNo.DisplayMember = "EquipmentNo"; ctWhoNotice.DataSource = BllEquipmentNotice.GetWhoNoticeByProcess(UserStatics.OptrType, UserStatics.WorkShop); ctWhoNotice.DisplayMember = "Name"; } if (UserStatics.OptrType == "Package" || UserStatics.OptrType == "Assembly") { ctTestSystem.Enabled = false; ctTester.Enabled = false; ctWhoNotice.DataSource = BllEquipmentNotice.GetWhoNoticeByProcess(UserStatics.OptrType, UserStatics.WorkShop); ctWhoNotice.DisplayMember = "Name"; } ctProcess.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "工序"); ctProcess.DisplayMember = "Name"; ctManagementType.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "管理分类"); ctManagementType.DisplayMember = "Name"; ctFailurePhenomenon.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "故障现象"); ctFailurePhenomenon.DisplayMember = "Name"; ctNoticeDate.Value = UserStatics.GetSqlServerDateTime(); }
protected override void Loading() { toolStripStatusLabel1.Text = toolStripStatusLabel1.Text + ",按F7选机台。"; if (UserStatics.OptrType == "Test") { ctCurrentProduct.Enabled = false; ctProcess.Enabled = false; label14.Text = "复测产量"; } else { ctProcess.Enabled = false; } ctProductAdaptation.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "适应产品"); ctProductAdaptation.DisplayMember = "Name"; ctProcess.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "工序"); ctProcess.DisplayMember = "Name"; ctGrouping.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "班组"); ctGrouping.DisplayMember = "Name"; ctRepairMonitor.DataSource = BllEquipmentDee.GetRepairMonitorByWorkShop(UserStatics.OptrType, UserStatics.WorkShop); ctRepairMonitor.DisplayMember = "Name"; ctGroupMonitor.DataSource = BllEquipmentDee.GetGroupMonitorByWorkShop(UserStatics.OptrType, UserStatics.WorkShop); ctGroupMonitor.DisplayMember = "Name"; ctOperator.DataSource = BllEquipmentDee.GetOperatorByWorkShop(UserStatics.OptrType, UserStatics.WorkShop); ctOperator.DisplayMember = "Name"; if (!IsAdd) { var obj = EquipmentDee.FindById(long.Parse(ItemID)); FrmAddEditBindComboBoxText.BindObjectToControls(obj, tabPage1); } else { ctDeeDate.Value = DateTime.Now.AddDays(-1); } }
protected override void Loading() { ctSex.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "性别"); ctSex.DisplayMember = "Name"; ctMarries.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "婚姻状况"); ctMarries.DisplayMember = "Name"; ctPoliticalBackground.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "政治面貌"); ctPoliticalBackground.DisplayMember = "Name"; ctWorkShop.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "车间"); ctWorkShop.DisplayMember = "Name"; ctProcess.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "工序"); ctProcess.DisplayMember = "Name"; ctPosition.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "职务"); ctPosition.DisplayMember = "Name"; ctProfessionalTitle.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "职称"); ctProfessionalTitle.DisplayMember = "Name"; ctWageGrade.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "工资级别"); ctWageGrade.DisplayMember = "Name"; ctHighestEducation.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "学历"); ctHighestEducation.DisplayMember = "Name"; ctStatus.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "在职状态"); ctStatus.DisplayMember = "Name"; if (!IsAdd) { var obj = HrPersonnelFile.FindById(long.Parse(ItemID)); FrmAddEditBindComboBoxText.BindObjectToControls(obj, tabPage1); } else { ctBirthday.Value = DateTime.Now.Date; ctDateEmployed.Value = DateTime.Now.Date; } }
protected override void Loading() { ctDistrict.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "区域"); ctDistrict.DisplayMember = "Name"; ctGroupMonitor.DataSource = BllAttendanceRate.GetGroupMonitorByWorkShop(UserStatics.OptrType, UserStatics.WorkShop); ctGroupMonitor.DisplayMember = "Name"; if (!IsAdd) { var obj = AttendanceRate.FindById(long.Parse(ItemID)); BindControlsDecimal.BindObjectToControls(obj, tabPage1); ReSetNumbericUpDownStatus(); } else { ctInputDate.Value = UserStatics.GetSqlServerDateTime(); } }
protected override void Loading() { if (UserStatics.OptrType == "Test") { ctModeNo.Enabled = false; ctProductType.Enabled = false; } ctProductType.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "适应产品"); ctProductType.DisplayMember = "Name"; ctTechnologicalEquipmentType.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "工装类型"); ctTechnologicalEquipmentType.DisplayMember = "Name"; ctWhoInstalled.DataSource = BllTechnologicalEquipment.GetWhoRepairByWorkShop(UserStatics.OptrType, UserStatics.WorkShop); ctWhoInstalled.DisplayMember = "Name"; ctWhoUninstalled.DataSource = BllTechnologicalEquipment.GetWhoRepairByWorkShop(UserStatics.OptrType, UserStatics.WorkShop); ctWhoUninstalled.DisplayMember = "Name"; ctInstallDate.Value = UserStatics.GetSqlServerDateTime(); ctTeHandle.Text = "在用"; }
protected override void Loading() { ctIsAddToInventory.Checked = true; ctUnitConvValue.Value = 1; ctCategory.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "物料分类"); ctCategory.DisplayMember = "Name"; ctPurchaseUnitName.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "单位"); ctPurchaseUnitName.DisplayMember = "Name"; ctSaleUnitName.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "单位"); ctSaleUnitName.DisplayMember = "Name"; if (!IsAdd || IsSaved) { var obj = BaseInfoMaterial.FindById(long.Parse(ItemID)); BindControlsDecimal.BindObjectToControls(obj, tabPage1); BindControlsDecimal.BindObjectToControls(obj, tabPage2); bsIngredients.DataSource = BllBaseInfoMaterialIngredients.GetDestTable(UserStatics.OptrType, ItemID); dgvIngredients.DataSource = bsIngredients; } }