Esempio n. 1
0
        public void SystemRunAfterSend(int nRet, int groupId, SGData sgData)
        {
            if (nRet == 0)
            {
                SGLoginData sgLoginDataSystemRun = (SGLoginData)sgDicRecvData.GetLoginData(groupId);
                sgLoginDataSystemRun.AddRunSystemEnvData(sgData);
                HsNetWork hs = null;
                if (m_DicNetWork.TryGetValue(groupId, out hs) == true)
                {
                    sgDicRecvData.SetLoginData(hs, groupId, sgLoginDataSystemRun);

                    /*
                     * sgLoginDataSystemRun = (SGLoginData)sgDicRecvData.GetLoginData(groupId);
                     * string strHszDefaultOption = sgLoginDataSystemRun.GetHszDefaultOption();
                     * int nHszOption = sgLoginDataSystemRun.GetHszDefaultDec();
                     * int nApproveTypeSFM = sgLoginDataSystemRun.GetApproveTypeSFM();
                     * string strInterLockEmail = sgLoginDataSystemRun.GetInterLockEmail();
                     */
                    hs = m_DicNetWork[groupId];
                    int hszOpt = sgLoginDataSystemRun.GetHszDefaultDec();
                    hs.SetHszDefault(hszOpt);
                }
                SendUrlList(groupId, sgLoginDataSystemRun.GetUserID());

                LoginEvent LoginResult_Event = null;
                LoginResult_Event = sgPageEvent.GetLoginEvent(groupId);
                if (LoginResult_Event != null)
                {
                    PageEventArgs e = new PageEventArgs();
                    e.result = 0;
                    e.strMsg = "";
                    LoginResult_Event(groupId, e);
                }
            }
        }
Esempio n. 2
0
        public void ApprLineAfterSend(int nRet, int groupId, SGData sgData)
        {
            if (nRet == 0)
            {
                HsNetWork hs = null;
                if (m_DicNetWork.TryGetValue(groupId, out hs) == true)
                {
                    hs = m_DicNetWork[groupId];
                    sgDicRecvData.SetApprLineData(hs, groupId, sgData);
                }
            }

            /*
             * SGApprLineData sgApprLineData = (SGApprLineData)sgDicRecvData.GetApprLineData(groupId);
             * List<string> strListName = sgApprLineData.GetApprAndLineName();
             * List<string> strListSeq = sgApprLineData.GetApprAndLineSeq();
             */
            SGUserData  sgUserData = (SGUserData)sgDicRecvData.GetUserData(groupId);
            SGLoginData sgLoginDataApproveDefault = (SGLoginData)sgDicRecvData.GetLoginData(groupId);
            string      strTeamCode = sgUserData.GetTeamCode();
            string      strUserID   = sgLoginDataApproveDefault.GetUserID();

            SendInstApprove(groupId, strUserID, strTeamCode);
            SendSystemRunEnv(groupId, strUserID);
        }
Esempio n. 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));
        }
Esempio n. 4
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));
        }
Esempio n. 5
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));
        }
Esempio n. 6
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);
        }
Esempio n. 7
0
        public void BindAfterSend(int nRet, int groupId, SGData sgData)
        {
            nRet = sgData.GetResult();
            string strMsg = "";

            if (nRet == 0)
            {
                HsNetWork hs = null;
                if (m_DicNetWork.TryGetValue(groupId, out hs) == true)
                {
                    hs = m_DicNetWork[groupId];
                    sgDicRecvData.SetLoginData(hs, groupId, sgData);
                    SGLoginData sgLoginBind    = (SGLoginData)sgDicRecvData.GetLoginData(groupId);
                    Int64       nFilePartSize  = sgLoginBind.GetFilePartSize();
                    Int64       nFileBandWidth = sgLoginBind.GetFileBandWidth();
                    int         nLinkCheckTime = sgLoginBind.GetLinkCheckTime();
                    nLinkCheckTime = (nLinkCheckTime * 2) / 3;
                    bool bDummy = sgLoginBind.GetUseDummyPacket();
                    hs.SetNetworkInfo(nFilePartSize, nFileBandWidth, bDummy, nLinkCheckTime);
                    SendUserInfoEx(groupId, sgLoginBind.GetUserID());
                }
            }
            else
            {
                strMsg = SGLoginData.LoginFailMessage(nRet);
                PageEventArgs e = new PageEventArgs();
                e.result = nRet;
                e.strMsg = strMsg;
                LoginResult_Event(groupId, e);
            }
        }
Esempio n. 8
0
        public HsNetWork GetConnectNetWork(int groupid)
        {
            HsNetWork hsTmp = null;

            if (m_DicNetWork.TryGetValue(groupid, out hsTmp) == true)
            {
                return(m_DicNetWork[groupid]);
            }
            return(null);
        }
Esempio n. 9
0
        public int SendTransDetail(int groupid, string strUserID, string strTransSeq)
        {
            HsNetWork hsNetWork = null;

            hsNetWork = GetConnectNetWork(groupid);
            if (hsNetWork != null)
            {
                sgSendData.RequestTransDetail(hsNetWork, groupid, strUserID, strTransSeq);
            }
            return(0);
        }
Esempio n. 10
0
        public int SendFileApprInfo(int groupid, string strUserID, string strFromDate, string strToDate, string strApprKind, string strTransKind, string strApprStatus, string strReqUserName, string strDlp, string strTitle, string strDlpApprove, string strApprover, string strDataType)
        {
            HsNetWork hsNetWork = null;

            hsNetWork = GetConnectNetWork(groupid);
            if (hsNetWork != null)
            {
                sgSendData.RequestFileApprList(hsNetWork, groupid, strUserID, strFromDate, strToDate, strApprKind, strTransKind, strApprStatus, strReqUserName, strDlp, strTitle, strDlpApprove, strApprover, strDataType);
            }
            return(0);
        }
Esempio n. 11
0
        public int SendDeptInfo(int groupid, string strUserID)
        {
            HsNetWork hsNetWork = null;

            hsNetWork = GetConnectNetWork(groupid);
            if (hsNetWork != null)
            {
                sgSendData.RequestDeptInfo(hsNetWork, groupid, strUserID);
            }
            return(0);
        }
Esempio n. 12
0
        public int SendChangePasswd(int groupid, string strUserID, string strOldPasswd, string strNewPasswd)
        {
            HsNetWork hsNetWork = null;

            hsNetWork = GetConnectNetWork(groupid);
            if (hsNetWork != null)
            {
                sgSendData.RequestChangePasswd(hsNetWork, groupid, strUserID, strOldPasswd, strNewPasswd);
            }
            return(0);
        }
Esempio n. 13
0
        public int SendSystemRunEnv(int groupid, string strUserID)
        {
            HsNetWork hsNetWork = null;

            hsNetWork = GetConnectNetWork(groupid);
            if (hsNetWork != null)
            {
                sgSendData.RequestSystemRunEnv(hsNetWork, groupid, strUserID);
            }
            return(0);
        }
Esempio n. 14
0
        public int SendApprDetailQuery(int groupid, string strUserID, string strQuery)
        {
            HsNetWork hsNetWork = null;

            hsNetWork = GetConnectNetWork(groupid);
            if (hsNetWork != null)
            {
                sgSendData.RequestSendApprDetailQuery(hsNetWork, groupid, strUserID, strQuery);
            }
            return(0);
        }
Esempio n. 15
0
        public int SendApproveBatch(int groupid, string strUserID, string strProcID, string strReason, string strApproveSeqs, string strApprover, string strApproveUserKind)
        {
            HsNetWork hsNetWork = null;

            hsNetWork = GetConnectNetWork(groupid);
            if (hsNetWork != null)
            {
                sgSendData.RequestApproveBatch(hsNetWork, groupid, strUserID, strProcID, strReason, strApproveSeqs, strApprover, strApproveUserKind);
            }
            return(0);
        }
Esempio n. 16
0
        public int SendApproveAlway(int groupid, string strUserID)
        {
            HsNetWork hsNetWork = null;

            hsNetWork = GetConnectNetWork(groupid);
            if (hsNetWork != null)
            {
                sgSendData.RequestApproveAlway(hsNetWork, groupid, strUserID);
            }
            return(0);
        }
Esempio n. 17
0
        public int Login(int groupid, string strID, string strPW)
        {
            HsNetWork hsNetWork = GetConnectNetWork(groupid);
            int       ret       = 0;

            if (hsNetWork != null)
            {
                ret = hsNetWork.Login(strID, strPW);
            }
            return(0);
        }
Esempio n. 18
0
        public int SendTransCancel(int groupid, string strUserID, string strTransSeq, string strAction, string strReason)
        {
            HsNetWork hsNetWork = null;

            hsNetWork = GetConnectNetWork(groupid);
            if (hsNetWork != null)
            {
                sgSendData.RequestSendCancel(hsNetWork, groupid, strUserID, strTransSeq, strAction, strReason);
            }
            return(0);
        }
Esempio n. 19
0
        public int SendInstApprove(int groupid, string strUserID, string strTeamCode)
        {
            HsNetWork hsNetWork = null;

            hsNetWork = GetConnectNetWork(groupid);
            if (hsNetWork != null)
            {
                sgSendData.RequestInstApprove(hsNetWork, groupid, strUserID, strTeamCode);
            }
            return(0);
        }
Esempio n. 20
0
        public int SendTransDaySize(int groupid, string strUserID)
        {
            HsNetWork hsNetWork = null;

            hsNetWork = GetConnectNetWork(groupid);
            if (hsNetWork != null)
            {
                sgSendData.RequestTransDaySize(hsNetWork, groupid, strUserID);
            }
            return(0);
        }
Esempio n. 21
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);
        }
Esempio n. 22
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);
        }
Esempio n. 23
0
        public void RequestSendSVRGPKIRandom(HsNetWork hsNet, string strUserID)
        {
            /*Dictionary<string, string> dic = new Dictionary<string, string>();
             * dic["APPID"] = "0x00000000";
             * dic["CLIENTID"] = strUserID;
             *
             * CmdSendParser sendParser = new CmdSendParser();
             * sendParser.SetSessionKey(hsNet.GetSeedKey()); // 통신단에서 seedkey 받아서 처리
             * SGEventArgs args = sendParser.RequestCmd("CMD_STR_GPKIRANDOM", dic);*/

            hsNet.Gpki_Random(strUserID);
        }
Esempio n. 24
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));
        }
Esempio n. 25
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);
        }
Esempio n. 26
0
        public void SetLoginData(HsNetWork hs, int groupid, SGData data)
        {
            SGLoginData tmpData = null;

            if (m_DicLoginData.TryGetValue(groupid, out tmpData) == true)
            {
                m_DicLoginData.Remove(groupid);
                tmpData = null;
            }
            tmpData = new SGLoginData();
            tmpData.Copy(hs, data);
            m_DicLoginData[groupid] = tmpData;
        }
Esempio n. 27
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;
        }
Esempio n. 28
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));
        }
Esempio n. 29
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));
        }
Esempio n. 30
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));
        }