Beispiel #1
0
        public int RequestFileApprList(HsNetWork hsNet, int groupid, string strUserID, string strFromDate, string strToDate, string strApprKind, string strTransKind, string strApproveStatus, string strReqUserName, string strDlp, string strTitle, string strDlpApprove, string strApprover, string strDataType)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]         = "0x00000000";
            dic["CLIENTID"]      = strUserID;
            dic["FROMDATE"]      = strFromDate;
            dic["TODATE"]        = strToDate;
            dic["APPROVKIND"]    = strApprKind;
            dic["TRANSKIND"]     = strTransKind;
            dic["APPROVESTATUS"] = strApproveStatus;
            dic["REQUSERNAME"]   = strReqUserName;
            dic["DLP"]           = strDlp;
            dic["TITLE"]         = strTitle;
            dic["DLPAPPROVE"]    = strDlpApprove;
            dic["APPROVER"]      = strApprover;
            dic["DATATYPE"]      = strDataType;
            CmdSendParser sendParser = new CmdSendParser();

            sendParser.SetSessionKey(hsNet.GetSeedKey());
            SGEventArgs args = sendParser.RequestCmd("CMD_STR_FILE_APPROVE", dic);

            hsNet.SendMessage(args);
            return(0);
        }
Beispiel #2
0
        public int RequestSendUrl(HsNetWork hsNet, int groupid, string strUserID, int nTotalCount, int nCurrentCount, int nSubDataType, string strUrlData)
        {
            if (strUrlData.Length < 1)
            {
                return(-1);
            }

            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]        = "0x00000000";
            dic["CLIENTID"]     = strUserID;
            dic["TOTALCOUNT"]   = nTotalCount.ToString();
            dic["CURRENTCOUNT"] = nCurrentCount.ToString();
            dic["SUBDATATYPE"]  = nSubDataType.ToString();

            dic["SUBDATASIZE"] = strUrlData.Length.ToString();
            dic["SUBDATA"]     = strUrlData;


            CmdSendParser sendParser = new CmdSendParser();

            sendParser.SetSessionKey(hsNet.GetSeedKey());
            SGEventArgs args = sendParser.RequestSubDataExchange("SUBDATAEXCHANGE", dic);

            return(hsNet.SendMessage(args));
        }
Beispiel #3
0
        public int SendUrlRedirectionData(HsNetWork hsNet, int groupid, string strUserID, int nTotalCount, int CurrentCount, int nSubDataType, string strUrlData)
        {
            if (strUrlData.Length < 1)
            {
                return(-1);
            }

            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]        = "0x00000000";
            dic["CLIENTID"]     = strUserID;
            dic["TOTALCOUNT"]   = nTotalCount.ToString();
            dic["CURRENTCOUNT"] = CurrentCount.ToString();
            dic["SUBDATATYPE"]  = nSubDataType.ToString();
            dic["SUBDATASIZE"]  = strUrlData.ToString();
            dic["SUBDATA"]      = strUrlData;

            // 3망 기능 지원안함
            // RequestCmd 에서 utf8로 인코딩함
            // Encoding.ASCII.GetByteCount(strUrlData);
            // Encoding.ASCII.GetBytes(strUrlData);

            CmdSendParser sendParser = new CmdSendParser();

            sendParser.SetSessionKey(hsNet.GetSeedKey());
            SGEventArgs args = sendParser.RequestCmd("CMD_STR_SUBDATAEXCHANGE", dic);

            return(hsNet.SendMessage(args));
        }
Beispiel #4
0
        public int RequestTransDaySize(HsNetWork hsNet, int groupid, string strUserID)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]    = "0x00000000";
            dic["CLIENTID"] = strUserID;
            CmdSendParser sendParser = new CmdSendParser();
            SGEventArgs   args       = sendParser.RequestCmd("CMD_STR_TRANSFERDAYSIZE", dic);

            hsNet.SendMessage(args);
            return(0);
        }
Beispiel #5
0
        public int RequestApproveAlway(HsNetWork hsNet, int groupid, string strUserID)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]    = "0x00000000";
            dic["CLIENTID"] = strUserID;
            CmdSendParser sendParser = new CmdSendParser();
            SGEventArgs   args       = sendParser.RequestCmd("CMD_STR_APPROVEALWAY", dic);

            hsNet.SendMessage(args);
            return(0);
        }
Beispiel #6
0
        public int RequestSendApprDetailQuery(HsNetWork hsNet, int groupid, string strUserID, string strQuery)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]    = "0x00000000";
            dic["CLIENTID"] = strUserID;
            dic["QUERY"]    = strQuery;
            CmdSendParser sendParser = new CmdSendParser();
            SGEventArgs   args       = sendParser.RequestSendQuery("CMD_STR_FILEAPPRDETAILQUERY", dic);

            hsNet.SendMessage(args);
            return(0);
        }
Beispiel #7
0
        public int RequestUrlList(HsNetWork hsNet, int groupid, string strUserID)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]    = "0x00000000";
            dic["CLIENTID"] = strUserID;
            CmdSendParser sendParser = new CmdSendParser();

            sendParser.SetSessionKey(hsNet.GetSeedKey());
            SGEventArgs args = sendParser.RequestCmd("CMD_STR_URLLIST", dic);

            return(hsNet.SendMessage(args));
        }
Beispiel #8
0
        public int RequestSecurityApproverQuery(HsNetWork hsNet, int groupid, string strUserID, string strQuery)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]    = "0x00000000";
            dic["CLIENTID"] = strUserID;
            dic["QUERY"]    = strQuery;
            CmdSendParser sendParser = new CmdSendParser();

            sendParser.SetSessionKey(hsNet.GetSeedKey());
            SGEventArgs args = sendParser.RequestSendQuery("CMD_STR_SECURITY_APPROVER_QUERY", dic);

            return(hsNet.SendMessage(args));
        }
Beispiel #9
0
        public int RequestRecordExistCheckQuery(HsNetWork hsNet, int groupid, string strUserID, string strQuery)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]    = "0x00000000";
            dic["CLIENTID"] = strUserID;
            dic["QUERY"]    = strQuery;
            CmdSendParser sendParser = new CmdSendParser();

            sendParser.SetSessionKey(hsNet.GetSeedKey());
            SGEventArgs args = sendParser.RequestSendQuery("CMD_STR_RECORDEXISTCHECK_QUERY", dic);

            return(hsNet.SendMessage(args));
        }
Beispiel #10
0
        public int RequestSendEmailCancel(HsNetWork hsNet, int groupid, string strUserID, string emailSeq)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]    = "0x00000000";
            dic["CLIENTID"] = strUserID;
            dic["EMAILSEQ"] = emailSeq;
            CmdSendParser sendParser = new CmdSendParser();

            sendParser.SetSessionKey(hsNet.GetSeedKey());
            SGEventArgs args = sendParser.RequestCmd("CMD_STR_EMAIL_SEND_CANCEL", dic);

            return(hsNet.SendMessage(args));
        }
Beispiel #11
0
        public int RequestInstApproveClear(HsNetWork hsNet, string strUserID, string appruserId)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]       = "0x00000000";
            dic["CLIENTID"]    = strUserID;
            dic["APPR_USERID"] = appruserId;
            CmdSendParser sendParser = new CmdSendParser();

            sendParser.SetSessionKey(hsNet.GetSeedKey());
            SGEventArgs args = sendParser.RequestCmd("CMD_STR_APPRINSTCLEAR", dic);

            return(hsNet.SendMessage(args));
        }
Beispiel #12
0
        public int RequestInstApprove(HsNetWork hsNet, int groupid, string strUserID, string strTeamCode)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]    = "0x00000000";
            dic["CLIENTID"] = strUserID;
            dic["TEAMCODE"] = strTeamCode;
            CmdSendParser sendParser = new CmdSendParser();

            sendParser.SetSessionKey(hsNet.GetSeedKey());
            SGEventArgs args = sendParser.RequestCmd("CMD_STR_APPRINSTCUR", dic);

            return(hsNet.SendMessage(args));
        }
Beispiel #13
0
        public int RequestSendDashBoardApprRejectCountQuery(HsNetWork hsNet, string strUserID, string strQuery)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]    = "0x00000000";
            dic["CLIENTID"] = strUserID;
            dic["QUERY"]    = strQuery;
            CmdSendParser sendParser = new CmdSendParser();

            sendParser.SetSessionKey(hsNet.GetSeedKey());
            SGEventArgs args = sendParser.RequestSendQuery("CMD_STR_DASHBOARDAPPRREJECTCOUNT", dic);

            return(hsNet.SendMessage(args));
        }
Beispiel #14
0
        public int RequestTransDetail(HsNetWork hsNet, int groupid, string strUserID, string strTransSeq)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]    = "0x00000000";
            dic["CLIENTID"] = strUserID;
            dic["TRANSSEQ"] = strTransSeq;
            CmdSendParser sendParser = new CmdSendParser();

            sendParser.SetSessionKey(hsNet.GetSeedKey());
            SGEventArgs args = sendParser.RequestCmd("CMD_STR_TRANS_DETAIL", dic);

            return(hsNet.SendMessage(args));
        }
Beispiel #15
0
        public int RequestSendLogOut(HsNetWork hsNet, string strUserID)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]    = "0x00000000";
            dic["CLIENTID"] = strUserID;
            dic["REASON"]   = "LOGOUT";
            CmdSendParser sendParser = new CmdSendParser();

            sendParser.SetSessionKey(hsNet.GetSeedKey());
            SGEventArgs args = sendParser.RequestCmd("CMD_STR_LOGOUT", dic);

            return(hsNet.SendMessage(args));
        }
Beispiel #16
0
        public int RequestSystemRunEnv(HsNetWork hsNet, int groupid, string strUserID)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]    = "0x00000000";
            dic["CLIENTID"] = strUserID;
            CmdSendParser sendParser = new CmdSendParser();

            sendParser.SetSessionKey(hsNet.GetSeedKey());
            SGEventArgs args = sendParser.RequestCmd("CMD_STR_SYSTEMRUNENV", dic);

            hsNet.SendMessage(args);
            return(0);
        }
Beispiel #17
0
        public int RequestSendBoardNotiConfirm(HsNetWork hsNet, string strUserID, string strQuery)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]    = "0x00000000";
            dic["CLIENTID"] = strUserID;
            dic["QUERY"]    = strQuery;
            CmdSendParser sendParser = new CmdSendParser();

            sendParser.SetSessionKey(hsNet.GetSeedKey());
            SGEventArgs args = sendParser.RequestSendQuery("CMD_STR_BOARDNOTIFYCONFIRM", dic);

            return(hsNet.SendMessage(args));
        }
Beispiel #18
0
        public int RequestSendZipDepthInfo(HsNetWork hsNet, string strUserID, string strQuery)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]    = "0x00000000";
            dic["CLIENTID"] = strUserID;
            dic["QUERY"]    = strQuery;
            CmdSendParser sendParser = new CmdSendParser();

            sendParser.SetSessionKey(hsNet.GetSeedKey());
            SGEventArgs args = sendParser.RequestSendQuery("CMD_STR_ZIPDEPTHINFO", dic);

            return(hsNet.SendMessage(args));
        }
Beispiel #19
0
        public int RequestSendDeptApprLineSearchQuery(HsNetWork hsNet, int groupid, string strUserID, string strQuery)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]    = "0x00000000";
            dic["CLIENTID"] = strUserID;
            dic["QUERY"]    = strQuery;
            CmdSendParser sendParser = new CmdSendParser();

            sendParser.SetSessionKey(hsNet.GetSeedKey());
            SGEventArgs args = sendParser.RequestSendQuery("CMD_STR_DEPTAPPRLINESEARCHQUERY", dic);

            return(hsNet.SendMessage(args));
        }
Beispiel #20
0
        public int RequestSendTransDetailQuery(HsNetWork hsNet, int groupid, string strUserID, string strQuery)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]    = "0x00000000";
            dic["CLIENTID"] = strUserID;
            dic["QUERY"]    = strQuery;
            CmdSendParser sendParser = new CmdSendParser();

            sendParser.SetSessionKey(hsNet.GetSeedKey());
            SGEventArgs args = sendParser.RequestSendQuery("CMD_STR_FILETRANSDETAILQUERY", dic);

            return(hsNet.SendMessage(args));
        }
Beispiel #21
0
        public int RequestSendSVRGPKIRegChange(HsNetWork hsNet, string strUserID, string strGpkiCN)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]    = "0x00000000";
            dic["CLIENTID"] = strUserID;
            dic["GPKI_CN"]  = strGpkiCN;

            CmdSendParser sendParser = new CmdSendParser();

            sendParser.SetSessionKey(hsNet.GetSeedKey());
            SGEventArgs args = sendParser.RequestCmd("CMD_STR_CHANGEGPKI_CN", dic);

            return(hsNet.SendMessage(args));
        }
Beispiel #22
0
        public int RequestSendCancel(HsNetWork hsNet, int groupid, string strUserID, string strTransSeq, string strAction, string strReason)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]    = "0x00000000";
            dic["CLIENTID"] = strUserID;
            dic["TRANSSEQ"] = strTransSeq;
            dic["ACTION"]   = strTransSeq;
            dic["REASON"]   = strReason;
            CmdSendParser sendParser = new CmdSendParser();
            SGEventArgs   args       = sendParser.RequestCmd("CMD_STR_SENDCANCEL", dic);

            hsNet.SendMessage(args);
            return(0);
        }
Beispiel #23
0
        public int RequestSendScreenLockClear(HsNetWork hsNet, string strUserID, string strPasswd, string strLoginType)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]     = "0x00000000";
            dic["CLIENTID"]  = strUserID;
            dic["PASSWORD"]  = strPasswd;
            dic["LOGINTYPE"] = strLoginType;
            CmdSendParser sendParser = new CmdSendParser();

            sendParser.SetSessionKey(hsNet.GetSeedKey());
            SGEventArgs args = sendParser.RequestClientUnlock("CMD_STR_CLIENTUNLOCK", dic);

            return(hsNet.SendMessage(args));
        }
Beispiel #24
0
        public int RequestSendChangePassWD(HsNetWork hsNet, string strUserID, string strOldPassWD, string strNewPassWD)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]       = "0x00000000";
            dic["CLIENTID"]    = strUserID;
            dic["OLDPASSWORD"] = strOldPassWD;
            dic["NEWPASSWORD"] = strNewPassWD;
            CmdSendParser sendParser = new CmdSendParser();

            sendParser.SetSessionKey(hsNet.GetSeedKey());
            SGEventArgs args = sendParser.RequestChangePW("CMD_STR_CHANGEPASSWORD", dic);

            return(hsNet.SendMessage(args));
        }
Beispiel #25
0
        public int RequestSendFileAddErr(HsNetWork hsNet, string strUserID, string strQuery)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]    = "0x00000000";
            dic["CLIENTID"] = strUserID;
            dic["QUERY"]    = strQuery;
            CmdSendParser sendParser = new CmdSendParser();

            sendParser.SetSessionKey(hsNet.GetSeedKey());
            //SGEventArgs args = sendParser.RequestCmd("CMD_STR_DATABASEQUERY", dic);
            SGEventArgs args = sendParser.RequestSendQuery("CMD_STR_FILEADDERROR", dic);

            return(hsNet.SendMessage(args));
        }
Beispiel #26
0
        public int RequestSendVirusConfirm(HsNetWork hsNet, string strUserID, string strTransSeq)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]    = "0x00000000";
            dic["CLIENTID"] = strUserID;
            dic["TRANSSEQ"] = strTransSeq;

            CmdSendParser sendParser = new CmdSendParser();

            sendParser.SetSessionKey(hsNet.GetSeedKey());
            SGEventArgs args = sendParser.RequestCmd("CMD_STR_VIRUS_CONFIRM", dic);

            return(hsNet.SendMessage(args));
        }
Beispiel #27
0
        public int RequestEmailApproveBatch(HsNetWork hsNet, int groupid, string strUserID, string strProcID, string strReason, string strApproveSeqs)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]            = "0x00000000";
            dic["CLIENTID"]         = strUserID;
            dic["PROCID"]           = strProcID;
            dic["REASON"]           = strReason;
            dic["EMAILAPPROVESEQS"] = strApproveSeqs;
            CmdSendParser sendParser = new CmdSendParser();

            sendParser.SetSessionKey(hsNet.GetSeedKey());
            SGEventArgs args = sendParser.RequestCmd("CMD_STR_EMAIL_APPROVE_BATCH", dic);

            return(hsNet.SendMessage(args));
        }
Beispiel #28
0
        public int RequestSendEmailDownload(HsNetWork hsNet, int groupid, string strUserID, string stEmailSeq, string sFileName, string filekey, string fileseq)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]    = "0x00000000";
            dic["CLIENTID"] = strUserID;
            dic["EMAILSEQ"] = stEmailSeq;
            dic["FILENAME"] = sFileName;
            dic["FILEKEY"]  = filekey;
            dic["FILESEQ"]  = fileseq;
            CmdSendParser sendParser = new CmdSendParser();

            sendParser.SetSessionKey(hsNet.GetSeedKey());
            SGEventArgs args = sendParser.RequestCmd("CMD_STR_EMAIL_FILEDOWNLOAD64", dic);

            return(hsNet.SendMessage(args));
        }
Beispiel #29
0
        public int RequestApproveBatch(HsNetWork hsNet, int groupid, string strUserID, string strProcID, string strReason, string strApproveSeqs, string strApprover, string strApproveUserKind)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]           = "0x00000000";
            dic["CLIENTID"]        = strUserID;
            dic["PROCID"]          = strProcID;
            dic["REASON"]          = strReason;
            dic["APPROVESEQS"]     = strApproveSeqs;
            dic["APPROVER"]        = strApprover;
            dic["APPROVEUSERKIND"] = strApproveUserKind;
            CmdSendParser sendParser = new CmdSendParser();
            SGEventArgs   args       = sendParser.RequestCmd("CMD_STR_APPROVEBATCH", dic);

            hsNet.SendMessage(args);
            return(0);
        }
Beispiel #30
0
        public int RequestSendSVRGPKICert(HsNetWork hsNet, string strUserID, string sessionKey, byte[] byteSignedDataHex)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]      = "0x00000000";
            dic["CLIENTID"]   = strUserID;  // 통신단에서 Utf8로 변환해서 전송해야됨
            dic["SESSIONKEY"] = sessionKey;
            dic["SIGNLEN"]    = byteSignedDataHex.Length.ToString();
            dic["SIGNDATA"]   = byteSignedDataHex.ByteToBase64String(); // 정각과장과 협의

            CmdSendParser sendParser = new CmdSendParser();

            sendParser.SetSessionKey(hsNet.GetSeedKey());
            SGEventArgs args = sendParser.RequestCmd("CMD_STR_GPKICERT", dic);

            return(hsNet.SendMessage(args));
        }