示例#1
0
 /// <summary>
 /// ����
 /// </summary>
 /// <param name="prmSg"></param>
 public long saveSignLog(signLog prmSg)
 {
     long _id = 0;
     if (prmSg.slID > 0)
     {
         flieds = new NBear.Common.PropertyItem[]{
             signLog._.slIp,
             signLog._.slOp,
             signLog._.slTime,
             signLog._.usID
         };
         values = new object[]{
             prmSg.slIp,
             prmSg.slOp,
             prmSg.slTime,
             prmSg.usID
         };
         db.Update<signLog>(flieds, values, signLog._.slID == prmSg.slID);
         _id = prmSg.slID;
     }
     else
     {
         _id = db.Save<signLog>(prmSg);
     }
     return _id;
 }
示例#2
0
 /// <summary>
 /// 保存
 /// </summary>
 /// <param name="prmSign"></param>
 public long saveSign(signlist prmSign)
 {
     long _id = 0;
     if (prmSign.siID > 0)
     {
         flieds = new NBear.Common.PropertyItem[]{
             signlist._.siImage,
             signlist._.siPassword,
             signlist._.siUtime,
             signlist._.usID
         };
         values = new object[]{
             prmSign.siImage,
             prmSign.siPassword,
             prmSign.siUtime,
             prmSign.usID
         };
         db.Update<signlist>(flieds, values, signlist._.siID == prmSign.siID);
         _id = prmSign.siID;
     }
     else
     {
         _id = db.Save<signlist>(prmSign);
     }
     return _id;
 }
示例#3
0
 /// <summary>
 /// ����
 /// </summary>
 /// <param name="prmCachet"></param>
 public long saveCachet(cachetList prmCachet)
 {
     long _id = 0;
     if (prmCachet.clID > 0)
     {
         flieds = new NBear.Common.PropertyItem[]{
             cachetList._.clImg,
             cachetList._.clName,
             cachetList._.clPwd,
             cachetList._.clTime,
             cachetList._.clUsid,
             cachetList._.clUsids,
             cachetList._.clUsnames
         };
         values = new object[]{
             prmCachet.clImg,
             prmCachet.clName,
             prmCachet.clPwd,
             prmCachet.clTime,
             prmCachet.clUsid,
             prmCachet.clUsids,
             prmCachet.clUsnames
         };
         db.Update<cachetList>(flieds, values, cachetList._.clID == prmCachet.clID);
         _id = prmCachet.clID;
     }
     else
     {
         _id = db.Save<cachetList>(prmCachet);
     }
     return _id;
 }