Beispiel #1
0
        public int RequestSendClipBoard(HsNetWork hsNet, string str3NetDestSysID, string strUserID, int TotalCount, int CurCount, int DataType, int ClipboardSize, byte[] ClipData)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]         = "0x00000000";
            dic["CLIENTID"]      = strUserID;
            dic["TOTALCOUNT"]    = TotalCount.ToString();
            dic["CURRENTCOUNT"]  = CurCount.ToString();
            dic["DATATYPE"]      = DataType.ToString();
            dic["CLIPBOARDSIZE"] = ClipboardSize.ToString();
            if (str3NetDestSysID.Length > 0)
            {
                dic["NETOVERDATA"] = str3NetDestSysID;
            }
            dic["CLIPBOARDDATA"] = "-";

            // KKW - Clipboard 전송할곳 지정 : str3NetDestSysID

            CmdSendParser sendParser = new CmdSendParser();

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

            return(hsNet.SendMessageClipBoard(args, ClipData));
        }
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 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 #5
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 #6
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 #7
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 #8
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 #9
0
        public void DetailDataChange(HsNetWork hs, SGDetailData data)
        {
            SetSessionKey(hs.GetSeedKey());
            m_DicTagData    = new Dictionary <string, string>(data.m_DicTagData);
            m_DicRecordData = new List <Dictionary <int, string> >(data.m_DicRecordData);

            m_bApprDetail    = data.m_bApprDetail;
            m_strTotalStatus = data.m_strTotalStatus;
            m_strApprSeq     = data.m_strApprSeq;
            m_nDataForwarded = data.m_nDataForwarded;
            m_bTransCancel   = data.m_bTransCancel;
            m_bApprove       = data.m_bApprove;
            m_bReject        = data.m_bReject;
        }
Beispiel #10
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 #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 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();

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

            return(hsNet.SendMessage(args));
        }
Beispiel #13
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 #14
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 #15
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 #16
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 #17
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 #18
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 #19
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 #20
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 #21
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 #22
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 #23
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 #24
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"]   = strAction;
            dic["REASON"]   = strReason;
            CmdSendParser sendParser = new CmdSendParser();

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

            return(hsNet.SendMessage(args));
        }
Beispiel #25
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 #26
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));
        }
Beispiel #27
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 #28
0
        public int RequestSend_PRIVACY_CONTINUE(HsNetWork hsNet, string strUserID, string transSeq, string dlpApprove, string privacyConfirmSeq, string NetType)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]            = "0x00000000";
            dic["CLIENTID"]         = strUserID;
            dic["TRANSSEQ"]         = transSeq;
            dic["DLPAPPROVE"]       = dlpApprove;
            dic["PRIVACYCONFIRMID"] = privacyConfirmSeq;
            dic["NETOVERSYSTEM"]    = NetType;

            CmdSendParser sendParser = new CmdSendParser();

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

            return(hsNet.SendMessage(args));
        }
Beispiel #29
0
        public int RequestInstApproveReg(HsNetWork hsNet, string strUserID, string strTeamCode, string startdate, string enddate, string appruserId, string apprteamcode)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]         = "0x00000000";
            dic["CLIENTID"]      = strUserID;
            dic["TEAMCODE"]      = strTeamCode;
            dic["STARTDATE"]     = startdate;
            dic["ENDDATE"]       = enddate;
            dic["APPR_TEAMCODE"] = apprteamcode;
            dic["APPR_USERID"]   = appruserId;
            CmdSendParser sendParser = new CmdSendParser();

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

            return(hsNet.SendMessage(args));
        }
Beispiel #30
0
        public int RequestSendFilePrev(HsNetWork hsNet, int groupid, string strUserID, string strTransSeq, string strFileName, string strFileKey, string strFileSeq, string strOrgData)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["APPID"]    = "0x00000000";
            dic["CLIENTID"] = strUserID;
            dic["TRANSSEQ"] = strTransSeq;
            dic["FILENAME"] = strFileName;
            dic["FILEKEY"]  = strFileKey;
            dic["FILESEQ"]  = strFileSeq;
            dic["ORGDATA"]  = strOrgData;

            CmdSendParser sendParser = new CmdSendParser();

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

            return(hsNet.SendMessage(args));
        }