Пример #1
0
        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()
        {
            ctAcceptDate.Value = DateTime.Now;
            var obj = EquipmentVariation.FindById(long.Parse(ItemID));

            FrmAddEditBindComboBoxText.BindObjectToControls(obj, tabPage1);

            ctAccepter1.DataSource    = BllEquipmentVariationAccept.GetWhoRepairByWorkShop(UserStatics.OptrType, UserStatics.WorkShop);
            ctAccepter1.DisplayMember = "Name";
        }
 protected override void InitData()
 {
     ActionTable  = UserStatics.GetUserActions(ModuleId);
     TableForLoad = BllEquipmentVariationAccept.GetTable(UserStatics.OptrType);
 }