예제 #1
0
        public string SaveTemplateControl()
        {
            string controlID             = HttpContext.Current.Request.Form["controlID"];
            string formTemplateID        = HttpContext.Current.Request.Form["formTemplateID"];
            FormTemplateControlBLL  bll  = new FormTemplateControlBLL();
            FormTemplateControlInfo info = new FormTemplateControlInfo();

            info.ControlID      = new Guid(controlID);
            info.FormTemplateID = new Guid(formTemplateID);
            bool ret = bll.CreateFormTemplateControl(info);

            if (ret)
            {
                return("Success");
            }
            else
            {
                return("Fail");
            }
        }
예제 #2
0
        public bool CreateFormTemplateControl(FormTemplateControlInfo info)
        {
            try
            {
                string sql = "P_K2_AddFormTemplateControl";

                SqlParameter[] paras =
                {
                    new SqlParameter("@FormTemplateID", info.FormTemplateID)
                    ,                                   new SqlParameter("@ControlID", info.ControlID)
                    ,                                   new SqlParameter("@CreatedBy", DBManager.GetCurrentUserAD())
                };

                SqlHelper.ExecuteDataSet(SqlHelper.ConnectionStringLocalTransaction, CommandType.StoredProcedure, sql, paras);
                return(true);
            }
            catch (Exception ex)
            {
                DBManager.RecoreErrorProfile(ex, "FormTemplateControlDAL.CreateFormTemplateControl", DBManager.GetCurrentUserAD());
                return(false);
            }
        }
예제 #3
0
 public bool CreateFormTemplateControl(FormTemplateControlInfo info)
 {
     return(dal.CreateFormTemplateControl(info));
 }