public bool UpdateUnit(string unitID, string unitName, string desciption, string operateID) { var dal = new ProductsDAL(); DataTable dt = dal.GetUnitByUnitID(unitID); string message = "单位名称“" + dt.Rows[0]["unitName"].ToString() + "”变更为“" + unitName + "”;描述“" + dt.Rows[0]["Description"].ToString() + "”变更为“" + desciption + "”"; LogBusiness.AddOperateLog(operateID, "ProductsBusiness.UpdateUnit", EnumLogType.Update, EnumLogModules.Stock, EnumLogEntity.ProductUnit, unitID, message,""); return dal.UpdateUnit(unitID, unitName, desciption); }
public bool UpdateUnit(string unitid, string unitName, string desciption, string operateID,string clientid) { var dal = new ProductsDAL(); bool bl = dal.UpdateUnit(unitid, unitName, desciption); if (bl) { var model = GetUnitByID(unitid, clientid); model.UnitName = unitName; } return bl; }