Esempio n. 1
0
 // AM IT#59635 AntechCSM 1.0.82.0
 public static void ResendClientgram(String strAutodial, String strAccount, String strCGID, String strUser, String strLab)
 {
     DL_Clientgram.ResendClientgram(strAutodial, strAccount, strCGID, strUser, strLab);
 }
Esempio n. 2
0
    public Clientgram(String clientGramId)
    {
        this._clientgramID = clientGramId;
        DataTable clientGram = DL_Clientgram.getCientGramDetails(clientGramId);

        if (clientGram == null)
        {
            this._isValid = false;
        }
        else if (clientGram.Rows.Count < 1)
        {
            this._isValid = false;
        }
        else if (clientGram.Rows.Count > 1)
        {
            this._isValid = false;
        }
        else
        {
            this._isValid = true;

            DataRow dr = clientGram.Rows[0];
            this._clientgramID    = dr["CLIENTGRAMID"].ToString();
            this._accountNumber   = dr["CLIENTNUM"].ToString();
            this._accessionNumber = dr["ACCESSION"].ToString();
            this._filedBy         = dr["AGENTID"].ToString();
            this._filedByDispName = dr["AGENTIDDISPNAME"].ToString();

            this._filedDateTime = AtlasIndia.AntechCSM.functions.AddTimeToDateNullable(dr["COLLECTIONDATE"].ToString(), dr["COLLECTIONTIME"].ToString());

            if (!String.IsNullOrEmpty(dr["AGENTID"].ToString()))
            {
                this._batchInfo = "Sent by " + dr["AGENTIDDISPNAME"].ToString();
            }

            // +AA Issue #59586 AntechCSM 1.0.82.0
            String tmpBatchDT;
            tmpBatchDT = AtlasIndia.AntechCSM.functions.AddTimeToDateString(dr["BatchDate"].ToString(), dr["BatchTime"].ToString());
            if (tmpBatchDT.Length > 0)
            {
                this._batchInfo += " on " + tmpBatchDT;
            }
            // -AA Issue #59586 AntechCSM 1.0.82.0

            #region Commented Issue #59586 - Moved in AtlasIndia.AntechCSM.functions.AddTimeToDateString()
            // +Commented Issue #59586 AntechCSM 1.0.82.0
            //String tmpBatchDT;
            //DateTime tmpDateTime;
            //if (DateTime.TryParse(dr["BatchDate"].ToString(), out tmpDateTime) == false)
            //{
            //    tmpBatchDT = dr["BatchDate"].ToString();
            //}
            //else
            //{
            //    tmpBatchDT = tmpDateTime.ToString(AtlasIndia.AntechCSM.functions.getDateFormat());
            //}

            //if (DateTime.TryParse(dr["BatchTime"].ToString(), out tmpDateTime) == false)
            //{
            //    tmpBatchDT = tmpBatchDT + " " + dr["BatchTime"].ToString();
            //}
            //else
            //{
            //    tmpBatchDT = tmpBatchDT + " " + tmpDateTime.ToString(AtlasIndia.AntechCSM.functions.getTimeFormat());
            //}
            //if (tmpBatchDT.Trim().Length > 0) this._batchInfo += " on " + tmpBatchDT;
            // -Commented Issue #59586 AntechCSM 1.0.82.0
            #endregion Commented Issue #59586 - AtlasIndia.AntechCSM.functions.AddTimeToDateString()

            this._messageText = dr["MESSAGEDETAILS"].ToString();
        }
    }
Esempio n. 3
0
 public static String insertClientGram(string strACCOUNT, string strPID, string strACCESSIONSTRING, string strMESSAGE, string strTrakVal, string strProbCategory, string strLocation, string strComments, string strResolution, string strFiledBy, string strFiledByDateTime, string strBatchInfo, string strMsgType, string strAutodial, string strInquiryNote)
 {
     return(DL_Clientgram.insertClientGram(strACCOUNT, strPID, strACCESSIONSTRING, strMESSAGE, strTrakVal, strProbCategory, strLocation, strComments, strResolution, strFiledBy, strFiledByDateTime, strBatchInfo, strMsgType, strAutodial, strInquiryNote));
 }