public void GetNonProductionListByTest()
        {
            var model = new NonProductionReasonModel();

            model.Department = "生技部";
            model.NonProductionReasonCode = "A2";
            model.NonProductionReason     = "Test2";
            // var tem = DailyReportService.ConfigManager.NonProductionSetter.AddNonProductionRecord(model);

            var tem2 = DailyReportService.ConfigManager.NonProductionReasonSetter.GetNonProductionReasonListBy("生技部");

            if (tem2 == null)
            {
                Assert.Fail();
            }
        }
Пример #2
0
 /// <summary>
 /// 添加一条非生产原因
 /// </summary>
 /// <param name="model">非生产原因模型</param>
 /// <returns></returns>
 public OpResult AddNonProductionRecord(NonProductionReasonModel model)
 {
     return(DailyReportCrudFactory.NonProductionReasonCrud.AddNonProductionRecord(model));
 }