private void GetCounts() { ctFrmEquipmentAccept.Text = "待接单数" + BllEquipmentAccept.GetCount(UserStatics.OptrType) + "台"; ctFrmEquipmentRepairFirst.Text = "待维修数" + BllEquipmentRepairFirst.GetCount(UserStatics.OptrType) + "台"; ctFrmEquipmentRepairSecond.Text = "未修复数" + BllEquipmentRepairSecond.GetCount(UserStatics.OptrType) + "台"; ctFrmEquipmentProductHandle.Text = "待处理数" + BllEquipmentProductHandle.GetCount(UserStatics.OptrType) + "台"; if (UserStatics.OptrType == "Test") { //todo 增加工装录入 ctFrmTechnologicalEquipmentOverrun.Text = "失效工装" + BllTechnologicalEquipment.GetTableTestOverrunCount() + "台"; ctFrmTechnologicalEquipmentSharpening.Text = "待磨工装" + BllTechnologicalEquipment.GetTableTestSharpeningCount() + "台"; } ctFrmEquipmentOfflineRepair.Text = "待接单数" + BllEquipmentOffline.GetCount(UserStatics.OptrType) + "台"; ctFrmEquipmentVariationAccept.Text = "变更接单" + BllEquipmentVariationAccept.GetCount(UserStatics.OptrType) + "台"; ctFrmEquipmentVariationHandle.Text = "变更处理" + BllEquipmentVariationHandle.GetCount(UserStatics.OptrType) + "台"; ctFrmEquipmentVariationHandle2.Text = "变更未完成" + BllEquipmentVariationHandle2.GetCount(UserStatics.OptrType) + "台"; }
protected override void Loading() { ctAssist.DataSource = BllEquipmentVariationHandle.GetWhoRepairByWorkShop(UserStatics.OptrType, UserStatics.WorkShop); ctAssist.DisplayMember = "Name"; ctResultConfirm.DataSource = CommonStatics.GetDict(UserStatics.OptrType, "变更效果确认"); ctResultConfirm.DisplayMember = "Name"; ctTester.DataSource = BllEquipmentVariationHandle.GetEquipmentType(UserStatics.OptrType, "测试仪"); ctTester.DisplayMember = "EquipmentNo"; ctFinishDate1.Value = DateTime.Now; var obj = EquipmentVariation.FindById(long.Parse(ItemID)); FrmAddEditBindComboBoxText.BindObjectToControls(obj, tabPage1); }
protected override void InitData() { ActionTable = UserStatics.GetUserActions(ModuleId); TableForLoad = BllEquipmentVariationHandle.GetTable(UserStatics.OptrType); }