예제 #1
0
        public override String ajax_MasterDeleteData(String id)
        {
            String[] deleteID = id.Split(',');

            ReturnAjaxInfo rAjaxResult = new ReturnAjaxInfo();

            ac            = new a_Unit();
            ac.Connection = getSQLConnection();

            RunDeleteEnd HResult = ac.DeleteMaster(deleteID, LoginUserId);

            rAjaxResult = HandleResultAjaxFiles(HResult, Resources.Res.Data_Delete_Success);
            return(JsonConvert.SerializeObject(rAjaxResult, new JsonSerializerSettings()
            {
                NullValueHandling = NullValueHandling.Ignore
            }));
        }
예제 #2
0
        public override String ajax_MasterDeleteData(String id)
        {
            String returnString = string.Empty;

            ReturnAjaxFiles rAjaxResult = new ReturnAjaxFiles();

            ac = new a_PageContext()
            {
                Connection = getSQLConnection(), logPlamInfo = plamInfo
            };;

            RunDeleteEnd HResult = ac.DeleteMaster(id.Split(',').CInt(), LoginUserId);

            rAjaxResult = HandleResultAjaxFiles(HResult, Resources.Res.Data_Delete_Success);
            return(JsonConvert.SerializeObject(rAjaxResult, new JsonSerializerSettings()
            {
                NullValueHandling = NullValueHandling.Ignore
            }));
        }
예제 #3
0
        public override String ajax_MasterDeleteData(String id)
        {
            JavaScriptSerializer js = new JavaScriptSerializer();

            String returnString = string.Empty;

            js.MaxJsonLength = 4096;

            ReturnAjaxFiles rAjaxResult = new ReturnAjaxFiles();

            ac            = new a_ProgData();
            ac.Connection = getSQLConnection();

            RunDeleteEnd HResult = ac.DeleteMaster(id.Split(',').CInt(), LoginUserId);

            rAjaxResult  = HandleResultAjaxFiles(HResult, Resources.Res.Data_Delete_Success);
            returnString = js.Serialize(rAjaxResult);
            return(returnString);
        }
예제 #4
0
        public String ajax_MasterDeleteData()
        {
            String[] deleteID = Request.Form["id"].Split(',');

            ReturnAjaxInfo rAjaxResult = new ReturnAjaxInfo();

            ac = new a_Users()
            {
                Connection = getSQLConnection()
            };

            RunDeleteEnd HResult = ac.DeleteMaster(deleteID, 0);

            rAjaxResult = HandleResultAjaxFiles(HResult, Resources.Res.Data_Delete_Success);
            return(JsonConvert.SerializeObject(rAjaxResult, new JsonSerializerSettings()
            {
                NullValueHandling = NullValueHandling.Ignore
            }));
        }
예제 #5
0
        public override String ajax_SubDataDelete(String id)
        {
            JavaScriptSerializer js = new JavaScriptSerializer()
            {
                MaxJsonLength = 65536
            };                                                                              //64K

            String returnString = string.Empty;

            ReturnAjaxFiles rAjaxResult = new ReturnAjaxFiles();

            acd = new a__CodeSheet()
            {
                Connection = getSQLConnection(), logPlamInfo = plamInfo
            };;
            RunDeleteEnd HResult = acd.DeleteMaster(id.Split(',').CInt(), LoginUserId);

            rAjaxResult = HandleResultAjaxFiles(HResult, Resources.Res.Data_Delete_Success);
            return(js.Serialize(rAjaxResult));
        }