Beispiel #1
0
        public JObject CropImage(string imgName, int w, int h, int x, int y, int fixWidth, HttpContext context, int mode, int userID)
        {
            string readPath = HttpContext.Current.Server.MapPath("/TempImages/") + imgName;       //ConfigurationManager.AppSettings["CropImageSavePath"].ToString() + "\\" + imgName.Substring(imgName.LastIndexOf("/") + 1);
            string savePath = HttpContext.Current.Server.MapPath("/Temp_crop_images/") + imgName; // ConfigurationManager.AppSettings["TempUploadPath"].ToString() + "\\" + imgName.Substring(imgName.LastIndexOf("/") + 1);

            GT.BusinessLogicLayer.V_1_5.Profile profileObj = new GT.BusinessLogicLayer.V_1_5.Profile();
            jobj = profileObj.CropWLeader(MyConf.MyConnectionString, savePath, readPath, imgName, w, h, x, y, fixWidth, context, mode, userID);
            return(jobj);
        }
Beispiel #2
0
 private JObject SetUserUtcOffset(HttpContext context)
 {
     GT.BusinessLogicLayer.V_1_5.Profile profileObj = new GT.BusinessLogicLayer.V_1_5.Profile();
     jobj = profileObj.SetUserUtcOffSet(MyConf.MyConnectionString, Convert.ToInt32(context.Session["UserID"]), Convert.ToInt32(HttpContext.Current.Request["modeSp"]), HttpContext.Current.Request["offSetValue"].ToString());
     return(jobj);
 }
Beispiel #3
0
 private JObject SetOnlyProfileNameEmail(HttpContext context, int mode)
 {
     GT.BusinessLogicLayer.V_1_5.Profile profileObj = new GT.BusinessLogicLayer.V_1_5.Profile();
     jobj = profileObj.ProfileUpdateNameEmail(MyConf.MyConnectionString, Convert.ToInt32(context.Session["UserID"]), mode, context);
     return(jobj);
 }
Beispiel #4
0
 private JObject RechargeAountPieChart(HttpContext context)
 {
     GT.BusinessLogicLayer.V_1_5.Profile profileObj = new GT.BusinessLogicLayer.V_1_5.Profile();
     jobj = profileObj.RcAmountPieDiagram(MyConf.MyConnectionString, Convert.ToInt32(context.Session["UserID"]));
     return(jobj);
 }
Beispiel #5
0
 private JObject GetProfileDetails(HttpContext context, int mode)
 {
     GT.BusinessLogicLayer.V_1_5.Profile profileObj = new GT.BusinessLogicLayer.V_1_5.Profile();
     jobj = profileObj.GetProfileDetailsDisplay(MyConf.MyConnectionString, Convert.ToInt32(context.Session["UserID"]), mode);
     return(jobj);
 }