예제 #1
0
 private void ctProcess_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (UserStatics.OptrType == "Package" || UserStatics.OptrType == "Assembly")
     {
         //机台号每个工序都会不同
         ctEquipmentNo.DataSource    = BllEquipmentNotice.GetEquipmentNoByProcess(UserStatics.OptrType, ctProcess.Text);
         ctEquipmentNo.DisplayMember = "EquipmentNo";
     }
 }
예제 #2
0
        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();
        }