public PartialViewResult Create(string wuYeBianHao = "")
 {
     if (string.IsNullOrEmpty(wuYeBianHao))
     {
         return(new PartialViewResult
         {
             ViewName = ExtHelper.Create.ToString(),
             Model = new ZhuZhaiLouDongXiuZheng()
         });
     }
     return(new PartialViewResult
     {
         ViewName = ExtHelper.CreateSh.ToString(),//"CreateSh",
         Model = new ZhuZhaiLouDongXiuZheng {
             WuYeBianHao = wuYeBianHao, WuYeMingCheng = _service.GetWuYeMingCheng(wuYeBianHao)
         }
     });
 }
예제 #2
0
 public PartialViewResult Create(string wuYeBianHao = "")
 {
     if (string.IsNullOrEmpty(wuYeBianHao))
     {
         return(new PartialViewResult
         {
             ViewName = "Create",
             Model = new ZhuZhaiChengJiao {
             }
         });
     }
     return(new PartialViewResult
     {
         ViewName = "CreateSh",
         Model = new ZhuZhaiChengJiao {
             WuYeBianHao = wuYeBianHao, WuYeMingCheng = _service.GetWuYeMingCheng(wuYeBianHao)
         }
     });
 }
예제 #3
0
        public ActionResult UpdateWuYeMingCheng(string wuYeBianHao)
        {
            if (!string.IsNullOrEmpty(wuYeBianHao))
            {
                this.GetCmp <TextField>("WuYeMingCheng").Value = _service.GetWuYeMingCheng(wuYeBianHao);
                return(this.Direct());
            }

            return(this.Direct());
        }