Esempio n. 1
0
        public string UpdateProDocActAss(TemplateSectionVo models)
        {
            string res = objprmdl.UpdateProDocActAss(models);

            if (HttpContext.Application["EditUserSection"] != null)
            {
                DataTable dt = (DataTable)HttpContext.Application["EditUserSection"];
                if (dt.Rows.Count > 0)
                {
                    foreach (DataRow dr in dt.Rows)
                    {
                        if (dr["UserID"].ToString() == Session["UserID"].ToString())
                        {
                            // do your deed
                            dr.Delete();
                            dt.AcceptChanges();
                        }
                    }
                    HttpContext.Application["EditUserSection"] = dt;
                    return(res);
                }
                else
                {
                    return(res);
                }
            }

            return(res);
        }
Esempio n. 2
0
        public string UpdateSection(TemplateSectionVo models)
        {
            string result = objprmdl.UpdateSecAssUser(models);

            if (HttpContext.Application["EditUserSection"] != null)
            {
                DataTable dt = (DataTable)HttpContext.Application["EditUserSection"];
                if (dt.Rows.Count > 0)
                {
                    for (int r = 0; r < dt.Rows.Count; ++r)
                    {
                        DataRow dr = dt.Rows[r];
                        if (dr["UserID"].ToString() == Session["UserID"].ToString())
                        {
                            // do your deed
                            dr.Delete();
                        }
                        //...
                    }
                    dt.AcceptChanges();
                    HttpContext.Application["EditUserSection"] = dt;
                    return(result);
                }
                else
                {
                    return(result);
                }
            }
            return(result);
        }
Esempio n. 3
0
        public string SubmitAuthRevSecAsignRecordByUser(int id, string comment, string status, string templateContent, string accessas)
        {
            TemplateSectionVo template = new TemplateSectionVo();

            template.ProDoc_Section_Assignment_id = id;
            template.Comment          = comment;
            template.Status           = status;
            template.Template_Content = templateContent;
            template.Access_as        = accessas;
            var model = new ProductModel();
            var res   = model.SubmitAuthRevSecRecordByUser(template);

            return(res);
        }
Esempio n. 4
0
        public string SubmitActAsignRecordByUser(int id, string comment, string status, string templateContent)
        {
            TemplateSectionVo template = new TemplateSectionVo();

            template.ProDoc_Template_id = id;
            template.Comment            = comment;
            template.Status             = status;
            template.Template_Content   = templateContent;

            var model = new ProductModel();
            var res   = model.SubmitActRecordByUser(template);

            return(res);
        }