| | |
| | | /// <param name="expData">生产时间</param> |
| | | /// <param name="prdData">到期时间</param> |
| | | /// <returns></returns> |
| | | internal static bool CreateCntrItem(string cntr, string itemcode, string itemname, string batch, string weight, int qty, string expData = "", string prdData = "") |
| | | internal static bool CreateCntrItemTray(string cntr, string itemcode, string itemname, string batch, string weight, int qty, string expData = "", string prdData = "",string powderType="") |
| | | { |
| | | var res = false; |
| | | var db = new SqlHelper<object>().GetInstance(); |
| | |
| | | S_BATCH_NO = batch, |
| | | F_QTY = qty, |
| | | D_EXP_DATE = prdData, |
| | | D_PRD_DATE = expData |
| | | D_PRD_DATE = expData, |
| | | S_FLTYPE = powderType |
| | | }; |
| | | if (db.Insertable<CntrItemDetail>(cir).ExecuteCommand() > 0) |
| | | { |
| | |
| | | cntritem.S_BATCH_NO = batch; |
| | | cntritem.D_EXP_DATE = prdData; |
| | | cntritem.D_PRD_DATE = expData; |
| | | cntritem.S_FLTYPE = powderType; |
| | | |
| | | if (db.Updateable<CntrItemDetail>(cntritem).ExecuteCommand() > 0) |
| | | { |