public string Registration(string username, string password, string pDivID, string pName, string pEmail, string pUserRights, int pRespType, string pOption) { string lResponse = ""; string lDT = ""; //Nastavitve.LoadLicData(); int lR = Registration(username, password, pDivID, pName, pEmail, pUserRights, out lDT); if (pRespType == 0) { lResponse = lDT; lResponse = Splosno.AddHeadDataToResponseData(pRespType, lR, Splosno.GetTranslateByID(lR), lResponse); } else if (pRespType == 1) { if (lDT.Length > 0) { DataTable dt = Splosno.DeserializeDataTable_json(lDT); lResponse = Splosno.SerializeDataTable_xml(dt); } lResponse = Splosno.AddHeadDataToResponseData(pRespType, lR, Splosno.GetTranslateByID(lR), lResponse); } return(lResponse); }
public static string Delete(int pID, int pRespType, string pOption) { string lResponse = ""; Delete(pID); if (pRespType == 0) { lResponse = Splosno.AddHeadDataToResponseData(pRespType, 0, "", lResponse); } else if (pRespType == 1) { lResponse = Splosno.AddHeadDataToResponseData(pRespType, 0, "", lResponse); } return(lResponse); }
public static string Edit(int id, string pUserName, string pPassword, string pFirstName, string pLastName, bool pActive, bool pAdmin, string pPravice, HttpSessionState s, string pEmail, string pGsm, int pModifUser, int pRespType, string pOption) { string lResponse = ""; Edit(id, pUserName, pPassword, pFirstName, pLastName, pActive, pAdmin, pPravice, s, pEmail, pGsm, pModifUser); if (pRespType == 0) { lResponse = Splosno.AddHeadDataToResponseData(pRespType, 0, "", lResponse); } else if (pRespType == 1) { lResponse = Splosno.AddHeadDataToResponseData(pRespType, 0, "", lResponse); } return(lResponse); }
public static string GetLicDataReport(int pRespType, string pOption) { string lResponse = ""; string dt = GetLicDataReport(); if (pRespType == 0) { lResponse = Splosno.AddHeadDataToResponseData(pRespType, 0, "", dt); } else if (pRespType == 1) { lResponse = Splosno.AddHeadDataToResponseData(pRespType, 0, "", dt); } return(lResponse); }
public static string GetLicData(int pRespType, string pOption) { string lResponse = ""; string dt = Convert.ToString(Get("", "LicData")); if (pRespType == 0) { lResponse = Splosno.AddHeadDataToResponseData(pRespType, 0, "", dt); } else if (pRespType == 1) { lResponse = Splosno.AddHeadDataToResponseData(pRespType, 0, "", dt); } return(lResponse); }
public static string SetLicData(int pUserMod, string pLicData, int pRespType, string pOption) { string lResponse = ""; SaveLicData(pLicData, pUserMod); LoadLicData(); if (pRespType == 0) { lResponse = Splosno.AddHeadDataToResponseData(pRespType, 0, "", lResponse); } else if (pRespType == 1) { lResponse = Splosno.AddHeadDataToResponseData(pRespType, 0, "", lResponse); } return(lResponse); }
public static string Get(int pRespType, string pOption) { string lResponse = ""; DataTable dt = Get(); if (pRespType == 0) { lResponse = Splosno.SerializeDataTable_json(dt); lResponse = Splosno.AddHeadDataToResponseData(pRespType, 0, "", lResponse); } else if (pRespType == 1) { lResponse = Splosno.SerializeDataTable_xml(dt, false); lResponse = Splosno.AddHeadDataToResponseData(pRespType, 0, "", lResponse); } return(lResponse); }
public static string Add(string pUserName, string pPassword, string pFirstName, string pLastName, bool pActive, string pPravice, string pEmail, string pGsm, bool pAdmin, int pModifUser, int pRespType, string pOption) { string lResponse = ""; int lID = Add(pUserName, pPassword, pFirstName, pLastName, pActive, pPravice, pEmail, pGsm, pAdmin, pModifUser); if (pRespType == 0) { lResponse = lID.ToString(); lResponse = Splosno.AddHeadDataToResponseData(pRespType, 0, "", lResponse); } else if (pRespType == 1) { lResponse = lID.ToString(); lResponse = Splosno.AddHeadDataToResponseData(pRespType, 0, "", lResponse); } return(lResponse); }
public static string Set(string pGroup, string pKey, int pUserMod, string pKeyValue, int pRespType, string pOption) { string lResponse = ""; Set(pGroup, pKey, pUserMod, pKeyValue); //SaveLicData(pLicData, pUserMod); //LoadLicData(); if (pRespType == 0) { lResponse = Splosno.AddHeadDataToResponseData(pRespType, 0, "", lResponse); } else if (pRespType == 1) { lResponse = Splosno.AddHeadDataToResponseData(pRespType, 0, "", lResponse); } return(lResponse); }
public static string Get(string acShortTitle, string acVATNumber, int pRespType, string pOption) { string lResponse = ""; DataTable dt = Get_d(acShortTitle, acVATNumber); if (pRespType == 0) { lResponse = JsonConvert.SerializeObject(dt, Newtonsoft.Json.Formatting.Indented); lResponse = Splosno.AddHeadDataToResponseData(pRespType, 0, "", lResponse); } else if (pRespType == 1) { lResponse = Splosno.SerializeDataTable_xml(dt, true); lResponse = Splosno.AddHeadDataToResponseData(pRespType, 0, "", lResponse); } return(lResponse); }