Example #1
0
 /// <summary>
 /// 新增
 /// </summary>
 /// <param name="GroupBuy"></param>
 /// <returns></returns>
 public bool GetInsert(M_ZL_GroupBuy GroupBuy)
 {
     if (GetInserts(GroupBuy) > 0)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #2
0
    // 确定
    protected void Button14_Click(object sender, EventArgs e)
    {
        string number = NumberText.Text.Trim();
        string price  = TGPrice.Text.Trim();

        if (number != "" && price != "")
        {
            M_ZL_GroupBuy GroupBuy = new M_ZL_GroupBuy();
            GroupBuy.Number = DataConverter.CLng(number);
            GroupBuy.Price  = DataConverter.CDouble(price);
            GroupBuy.ShopID = ProID;
            zl_groupbuy.GetInsert(GroupBuy);
            function.WriteSuccessMsg("添加成功!");
        }
        else
        {
            function.WriteErrMsg("添加失败!请人数或价格!");
        }
    }
Example #3
0
 public int GetInserts(M_ZL_GroupBuy model)
 {
     return(Sql.insert(strTableName, model.GetParameters(), BLLCommon.GetParas(model), BLLCommon.GetFields(model)));
 }
Example #4
0
 /// <summary>
 /// 根据ID更新
 /// </summary>
 public bool GetUpdate(M_ZL_GroupBuy model)
 {
     return(Sql.UpdateByIDs(strTableName, PK, model.ID.ToString(), BLLCommon.GetFieldAndPara(model), model.GetParameters()));
 }