Exemple #1
0
        internal string getCCMNoteDescription(CCMModel model)
        {
            Dictionary <object, object> parameters = new Dictionary <object, object>();

            parameters.Add("@CCMNoteID", CCMNoteID);
            return(TransformCCMNoteDesscription(DBManager.GetData(GetCCMNoteDescription_SP, parameters)));
        }
Exemple #2
0
        private string TransformCCMNoteDesscription(DataTable dataTable)
        {
            CCMModel obj = new CCMModel();

            if (dataTable.Rows.Count > 0)
            {
                return(Convert.ToString(dataTable.Rows[0]["CCMNoteDescription"]));
            }
            return("");
        }
Exemple #3
0
        private List <CCMModel> TransformCCMNoteData(DataTable dataTable)
        {
            List <CCMModel> ccmnotesList = new List <CCMModel>();

            if (dataTable.Rows.Count > 0)
            {
                foreach (var item in dataTable.AsEnumerable())
                {
                    CCMModel obj = new CCMModel();
                    obj.CCMNoteID         = Convert.ToInt64(item["CCMNoteInfoId"]);
                    obj.CCMNoteDescrption = Convert.ToString(item["CCMNoteText"]);
                    obj.CCMNoteText       = Convert.ToString(item["CCMNoteDescription"]);
                    obj.CurrentDateTime   = DateTime.Now;
                    ccmnotesList.Add(obj);
                }
            }
            return(ccmnotesList);
        }