Пример #1
0
        //修改险种
        private void ModifyProType(string proID)
        {
            ProductTypeManager productTypeBLL = new ProductTypeManager();

            EtNet_Models.ProductType productTypeModel = new EtNet_Models.ProductType();
            productTypeModel = productTypeBLL.GetModel(proID);

            productTypeModel.ProdClass    = ddlType.SelectedValue;
            productTypeModel.ProdTypeName = txtName.Text;
            productTypeModel.TargetTypeId = Convert.ToInt32(ddlTarget.SelectedValue);

            productTypeBLL.Update(productTypeModel);
            hidId.Value = "MODIFY" + "$" + productTypeModel.ProdTypeName;
        }
Пример #2
0
        /// <summary>
        /// 修改险种
        /// </summary>
        private void ModifyProType()
        {
            ProductTypeManager productTypeBLL = new ProductTypeManager();

            EtNet_Models.ProductType productTypeModel = new EtNet_Models.ProductType();

            if (stvProType.SelectedValue.Trim() != string.Empty)
            {
                productTypeModel.ParentId = stvProType.SelectedNode.Parent.Value;
            }
            else
            {
                productTypeModel.ParentId = "                                ";
            }
            productTypeModel.ProdClass    = ddlType.SelectedValue;
            productTypeModel.ProdTypeName = txtName.Text;
            productTypeModel.ProdTypeNo   = GetParent(stvProType.SelectedValue).ProdTypeNo;
            productTypeModel.TargetTypeId = Convert.ToInt32(ddlTarget.SelectedValue);

            if (productTypeBLL.Update(productTypeModel))
            {
                stvProType.SelectedNode.Text = txtName.Text;
            }
        }