Пример #1
0
        public static string RetDociD(string MCID)
        {
            clsClearficationMCProperties propObj = new clsClearficationMCProperties();

            propObj.MCID = MCID;
            clsClearficationMC Obj = new clsClearficationMC();

            Obj.InsertComment(propObj);

            string _iDocsendDetailsID = string.Empty;

            SqlConnection cn = new System.Data.SqlClient.SqlConnection(ConfigurationManager.ConnectionStrings["TA7511DBConnString"].ConnectionString);


            string sql = "select  * from tblMC where  iMissionClearanceId =" + MCID;

            cn = new System.Data.SqlClient.SqlConnection(ConfigurationManager.ConnectionStrings["TA7511DBConnString"].ConnectionString);
            SqlDataAdapter ad  = new System.Data.SqlClient.SqlDataAdapter(sql, cn);
            DataSet        ds1 = new DataSet();

            ad.Fill(ds1);
            string getID = string.Empty;

            getID = ds1.Tables[0].Rows[0]["DocID"].ToString();
            clsMC mc = new clsMC();

            _iDocsendDetailsID = (mc.getDocIDforMessage(MCID)).ToString();
            return(_iDocsendDetailsID);
        }
Пример #2
0
        public string SaveOnDocLog(string _Type, string MCID)
        {
            string _iDocsendDetailsID = string.Empty;

            SqlConnection cn = new System.Data.SqlClient.SqlConnection(ConfigurationManager.ConnectionStrings["TA7511DBConnString"].ConnectionString);


            string sql = "select  * from tblMC where  iMissionClearanceId =" + MCID;

            cn = new System.Data.SqlClient.SqlConnection(ConfigurationManager.ConnectionStrings["TA7511DBConnString"].ConnectionString);
            SqlDataAdapter ad  = new System.Data.SqlClient.SqlDataAdapter(sql, cn);
            DataSet        ds1 = new DataSet();


            ad.Fill(ds1);


            string getID = string.Empty;

            getID = ds1.Tables[0].Rows[0]["DocID"].ToString();

            clsMC mc = new clsMC();

            _iDocsendDetailsID = (mc.getDocIDforMessage(MCID)).ToString();

            return(_iDocsendDetailsID);
        }