public int InsertMea(Model.Measures measure) { measure.MeDate = DateTime.Now; int id = -1; if (DalBase.Insert(measure) > 0) { Model.CustomLosts c = new Model.CustomLosts() { CLState = 2, CLID = measure.CLID, }; id = UpdLost(c); } return(id); }
public int UpdLost(Model.CustomLosts lost) { lost.CLState = 3; lost.CLEnterDate = DateTime.Now; return(DalBase.Updata(lost)); }
public int UpdLost(Model.CustomLosts losts) { return(DalBase.Updata(losts)); }