internal static WfProinstMater AddMaterFormTemplet(WfAppendix appendix, string proinstId)
 {
     WfProinstMater mater = new WfProinstMater();
     mater.Id = StringHelper.GetNewGuid();
     mater.ProinstId = proinstId;
     mater.Name = appendix.Name;
     mater.OldNum = appendix.OldNum;
     mater.DupliNum = appendix.DupliNum;
     mater.Description = appendix.Description;
     mater.Selected = true;
     return mater;
 }
 public override void Run()
 {
     WfProinstMater mater = new WfProinstMater();
     mater.Id = StringHelper.GetNewGuid();
     mater.Name = "新增材料";
     mater.ProinstId = base.me.ProinstId;
     mater.OldNum = 1;
     mater.DupliNum = 0;
     mater.Description = string.Empty;
     mater.Selected = true;
     base.me.CurrentUnitOfWork.RegisterNew(mater);
     base.me.AddMater(mater);
 }