//AUTH MODIFY public string mCodeTAuth(string pTcode, string pSiteCd, string pAuthCd, string pViewFlag, string pNewFlag, string pModifyFlag, out string reMsg, out string reData) { string reCode = "N"; reData = "0"; BizCodeT bizCodeT = null; try { bizCodeT = new BizCodeT(); int reCnt = bizCodeT.mCodeTAuth(pTcode, pSiteCd, pAuthCd, pViewFlag, pNewFlag, pModifyFlag); if (reCnt > 0) { reMsg = "[저장 성공]"; reCode = "Y"; reData = reCnt.ToString(); } else { reMsg = "[저장 성공] - 정보 없음"; reCode = "Y"; } } catch (Exception ex) { logs.SaveLog("[error] (page)::WsCodeTMainDB.svc (Function)::mCodeT (Detail)::" + "\r\n" + ex.ToString(), "Error"); reMsg = "[저장 에러] :: " + ex.ToString(); reCode = "N"; } return(reCode); }
public string aCodeTSiteLog(string pDbnm, string pSiteCd, string pTcode, string pTgrpCcd, string pRequiredFlag, string pNumericFlag, string pDefaultValue, string pUsingFlag, string pSortNo, string pMemo, string pInputId, out string reMsg, out string reData) { string reCode = "N"; reData = "0"; BizCodeT bizCodeT = null; try { bizCodeT = new BizCodeT(); int reCnt = bizCodeT.aCodeTSiteLog(pDbnm, pSiteCd, pTcode, pTgrpCcd, pRequiredFlag, pNumericFlag, pDefaultValue, pUsingFlag, pSortNo, pMemo, pInputId); if (reCnt > 0) { reMsg = "[저장 성공]"; reCode = "Y"; reData = reCnt.ToString(); } else { reMsg = "[저장 성공] - 정보 없음"; reCode = "Y"; } } catch (Exception ex) { logs.SaveLog("[error] (page)::WsCodeTMainDB.svc (Function)::aCodeTSub (Detail)::" + "\r\n" + ex.ToString(), "Error"); reMsg = "[저장 에러] :: " + ex.ToString(); reCode = "N"; } return(reCode); }
public string aCodeTSub(string pTcode, string pTscodeNm, string pUsingCnt, string pInputId, out string reMsg, out string reData) { string reCode = "N"; reData = "0"; BizCodeT bizCodeT = null; try { bizCodeT = new BizCodeT(); int reCnt = bizCodeT.aCodeTSub(pTcode, pTscodeNm, pUsingCnt, pInputId); if (reCnt > 0) { reMsg = "[저장 성공]"; reCode = "Y"; reData = reCnt.ToString(); } else { reMsg = "[저장 성공] - 정보 없음"; reCode = "Y"; } } catch (Exception ex) { logs.SaveLog("[error] (page)::WsCodeTMainDB.svc (Function)::aCodeTSub (Detail)::" + "\r\n" + ex.ToString(), "Error"); reMsg = "[저장 에러] :: " + ex.ToString(); reCode = "N"; } return(reCode); }
public string aCodeT(string pTcode, string pttypeScd, string ptcodeNm, string pListFlag, string pRequiredFlag, string pNumericFlag, string pInputId, out string reMsg, out string reData) { string reCode = "N"; reData = "0"; BizCodeT bizCodeT = null; try { bizCodeT = new BizCodeT(); int reCnt = bizCodeT.aCodeT(pTcode, pttypeScd, ptcodeNm, pListFlag, pRequiredFlag, pNumericFlag, pInputId); if (reCnt > 0) { reMsg = "[저장 성공]"; reCode = "Y"; reData = reCnt.ToString(); } else { reMsg = "[저장 성공] - 정보 없음"; reCode = "Y"; } } catch (Exception ex) { logs.SaveLog("[error] (page)::WsCodeTMainDB.svc (Function)::aCodeT (Detail)::" + "\r\n" + ex.ToString(), "Error"); reMsg = "[저장 에러] :: " + ex.ToString(); reCode = "N"; } return(reCode); }
public string aCodeTSite(string pDbNm, string[] param, out string reMsg, out string reData) { string reCode = "N"; string reVal = ""; BizCodeT bizCodeT = null; try { bizCodeT = new BizCodeT(); try { Hashtable hParam = new Hashtable(); hParam.Add("pTcode", param[0].ToString()); hParam.Add("pTtype_scd", param[1].ToString()); hParam.Add("pTcode_Nm", param[2].ToString()); hParam.Add("pRequired_Flag", Convert.ToInt16(param[3])); hParam.Add("pNumerric_Flag", Convert.ToInt16(param[4])); hParam.Add("pList_Flag", Convert.ToInt16(param[5])); hParam.Add("pInput_Id", Convert.ToInt16(param[6])); hParam.Add("pSite_Cd", Convert.ToInt16(param[7])); hParam.Add("pTgrp_Ccd", Convert.ToInt16(param[8])); hParam.Add("@rtnTcode", ""); reVal = bizCodeT.aCodeTSite(pDbNm, hParam, out Hashtable outVal); if (outVal != null) { foreach (DictionaryEntry dictionaryEntry in outVal) { string[] row = new string[] { dictionaryEntry.Key.ToString(), dictionaryEntry.Value.ToString(), "" }; string rowCount = row.Length.ToString(); //string rowKey = row[0].ToString(); reVal = row[1].ToString(); } } reMsg = "[검색 성공]"; reCode = "Y"; } catch (Exception ex) { reMsg = "[검색 실패]" + ex.ToString(); reCode = "N"; } } catch (Exception ex) { reMsg = "[검색 에러 - BizCodeT 연결 실패] :: " + ex.ToString(); reCode = "N"; } reData = reVal; return(reCode); }
//SELECT : WHEN USER CLICK TTYPE_SCD public string sCodeTAuthTtype(string pTtypeScd, string pSiteCd, string pAuthCd, out List <DataCodeTAuthSelect> reList, out string reMsg) { string reCode = "N"; DataSet ds = null; BizCodeT bizCodeT = null; try { bizCodeT = new BizCodeT(); try { ds = bizCodeT.sCodeTAuthTtype(pTtypeScd, pSiteCd, pAuthCd); reMsg = "[검색 성공]"; reCode = "Y"; } catch (Exception ex) { reMsg = "[검색 실패]" + ex.ToString(); reCode = "N"; } } catch (Exception ex) { reMsg = "[검색 에러] :: " + ex.ToString(); reCode = "N"; } List <DataCodeTAuthSelect> data = new List <DataCodeTAuthSelect>(); try { data = ListClass.ConvertDataTableToList <DataCodeTAuthSelect>(ds.Tables[0]); } catch (Exception ex) { logs.SaveLog("[error] (page)::WsCodeTMainDB.svc (Function)::sCodeTAuthTtype (Detail)::ConvertDataTableToList " + "\r\n" + ex.ToString(), "Error"); reMsg += "/[List 에러]" + ex.ToString(); reCode = "N"; } reList = data; return(reCode); }