public ActionResult SaveMasterInfo(InspFlagginMaster objMaster)
        {
            var user = (User)Session["CurrentUser"];

            //objMaster.UserId = user.EMPID;
            objMaster.UserName = user.EMPID;
            var res = _repository.SaveMasterInfo(objMaster);

            return(Json(res, JsonRequestBehavior.AllowGet));
        }
예제 #2
0
        public string SaveMasterInfo(InspFlagginMaster objMaster)
        {
            string rv = "";

            try
            {
                var result = Insert_Update_MasterInfo("sp_insert_insp_flaggin_master_info", "SAVE_MASTER", objMaster);
                rv = Operation.Success.ToString();
                return(result.Rows[0]["ID"].ToString());
            }
            catch (Exception ex)
            {
                rv = ex.Message;
            }
            return(rv);
        }
예제 #3
0
 public DataTable Insert_Update_MasterInfo(string procedure, string callname, InspFlagginMaster objMaster)
 {
     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("@ID", objMaster.ID));
     cmd.Parameters.Add(new SqlParameter("@FDate", objMaster.FDate));
     cmd.Parameters.Add(new SqlParameter("@Remarks", objMaster.Remarks));
     cmd.Parameters.Add(new SqlParameter("@UserName", objMaster.UserName));
     cmd.Parameters.Add(new SqlParameter("@InsFloorCode", objMaster.InsFloorCode));
     cmd.Parameters.Add(new SqlParameter("@InsFloorName", objMaster.InsFloorName));
     da = new SqlDataAdapter(cmd);
     dt = new DataTable();
     da.Fill(dt);
     dbConn.Close();
     return(dt);
 }
 public string SaveMasterInfo(InspFlagginMaster objMaster)
 {
     return(_service.SaveMasterInfo(objMaster));
 }