public M_PayPlat GetModelFromReader(DbDataReader rdr) { M_PayPlat model = new M_PayPlat(); model.PayPlatID = Convert.ToInt32(rdr["PayPlatID"]); model.UID = ConvertToInt(rdr["UID"]); model.PayClass = Convert.ToInt32(rdr["PayClass"]); model.PayPlatName = ConverToStr(rdr["PayPlatName"]); model.AccountID = ConverToStr(rdr["AccountID"]); model.MD5Key = ConverToStr(rdr["MD5Key"]); model.SellerEmail = ConverToStr(rdr["SellerEmail"]); model.IsDisabled = Convert.ToBoolean(rdr["IsDisabled"]); model.IsDefault = Convert.ToBoolean(rdr["IsDefault"]); model.Rate = (float)ConverToDouble(rdr["Rate"]); model.OrderID = ConvertToInt(rdr["OrderID"]); model.payType = ConverToStr(rdr["payType"]); model.leadtoGroup = ConverToStr(rdr["leadtoGroup"]); model.PayPlatinfo = ConverToStr(rdr["PayPlatinfo"]); model.PrivateKey = ConverToStr(rdr["PrivateKey"]); model.PublicKey = ConverToStr(rdr["PublicKey"]); model.ServerPublicKey = ConverToStr(rdr["Other"]); model.PrivateKey_Pwd = ConverToStr(rdr["PrivateKey_Pwd"]); model.APPID = ConverToStr(rdr["APPID"]); model.Secret = ConverToStr(rdr["Secret"]); model.Remind = ConverToStr(rdr["Remind"]); rdr.Dispose(); return(model); }
public override SqlParameter[] GetParameters() { M_PayPlat model = this; SqlParameter[] sp = GetSP(); sp[0].Value = model.PayPlatID; sp[1].Value = model.UID; sp[2].Value = model.PayClass; sp[3].Value = model.PayPlatName; sp[4].Value = model.AccountID; sp[5].Value = model.MD5Key; sp[6].Value = model.SellerEmail; sp[7].Value = model.IsDisabled; sp[8].Value = model.IsDefault; sp[9].Value = model.Rate; sp[10].Value = model.OrderID; sp[11].Value = model.payType; sp[12].Value = model.leadtoGroup; sp[13].Value = model.PayPlatinfo; sp[14].Value = model.PrivateKey; sp[15].Value = model.PublicKey; sp[16].Value = model.ServerPublicKey; sp[17].Value = model.PrivateKey_Pwd; sp[18].Value = model.APPID; sp[19].Value = model.Secret; sp[20].Value = model.Remind; return(sp); }
public bool Update(M_PayPlat m_PayPlat) { return dal.Update(m_PayPlat); }
public bool Add(M_PayPlat m_PayPlat) { return dal.Add(m_PayPlat); }
public bool Update(M_PayPlat m_PayPlat) { return true; }
public bool Add(M_PayPlat m_PayPlat) { return true; }