Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DalOperationNorm dalOperationNorm = new DalOperationNorm();
                if (Request["normId"] != null)
                {
                    int normId = Convert.ToInt32(Request["normId"]);
                    Norm norm = dalOperationNorm.getNormById(normId);
                    if (norm != null)
                    {
                        this.hidNormId.Value = Convert.ToString(norm.normId);
                        this.hidParentId.Value = Convert.ToString(norm.parentId);
                        this.ddltNormType.SelectedValue = Convert.ToString(norm.type);
                        Norm parent = null;
                        if ((parent = dalOperationNorm.getNormById(norm.parentId)) != null)
                        {
                            this.parentName = parent.name;
                        }
                        this.TextNormName.Text = norm.name;
                        this.TextComment.Text = norm.comment;
                    }

                }
            }
        }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            DalOperationNorm dalOperationNorm = new DalOperationNorm();
                if (Request["parentId"] != null && Request["parentId"]!="")
                {
                    int parentId = Convert.ToInt32(Request["parentId"]);
                    Norm norm = dalOperationNorm.getNormById(parentId);
                    if (norm != null)
                    {
                        this.parentId.Value = Convert.ToString(norm.normId);
                        parentName = norm.name;
                    }

                }
        }