public ActionResult SaveDetailInfo(InspectionFloorStockDetail obj) { var user = (User)Session["CurrentUser"]; var res = _repository.SaveDetailInfo(obj); return(Json(res, JsonRequestBehavior.AllowGet)); }
public string SaveDetailInfo(InspectionFloorStockDetail obj) { string rv = ""; try { var result = Insert_Update_DetailInfo("sp_insert_insp_floor_stock_detail_info", "SAVE_DETAIL", obj); rv = Operation.Success.ToString(); return(result.Rows[0]["DID"].ToString()); } catch (Exception ex) { rv = ex.Message; } return(rv); }
public DataTable Insert_Update_DetailInfo(string procedure, string callname, InspectionFloorStockDetail obj) { dbConn = new SqlConnection(ConnectionString); dbConn.Open(); cmd = new SqlCommand(procedure, dbConn); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add(new SqlParameter("@call_name", callname)); cmd.Parameters.Add(new SqlParameter("@DID", obj.DID)); cmd.Parameters.Add(new SqlParameter("@ID", obj.ID)); cmd.Parameters.Add(new SqlParameter("@StyleNo", obj.StyleNo)); cmd.Parameters.Add(new SqlParameter("@StyleCode", obj.StyleCode)); cmd.Parameters.Add(new SqlParameter("@Qnty", obj.Qnty)); cmd.Parameters.Add(new SqlParameter("@Remarks", obj.Remarks)); da = new SqlDataAdapter(cmd); dt = new DataTable(); da.Fill(dt); dbConn.Close(); return(dt); }
public string SaveDetailInfo(InspectionFloorStockDetail obj) { return(_service.SaveDetailInfo(obj)); }