Exemplo n.º 1
0
    private decimal Save(RadioButtonList rbl, string code, bool IsSave)
    {
        Tz888.Model.TFZS.TFZS_ProjectDetaiSubModel model = new Tz888.Model.TFZS.TFZS_ProjectDetaiSubModel();
        model.id            = 0;
        model.InfoID        = this.InfoID;
        model.ExpressCode   = code;
        model.DicMainCode   = "";
        model.TARGET_ANSWER = rbl.SelectedValue.Trim();
        model.TARGET_POINT  = 0;

        Tz888.BLL.TFZS.TFZS_ProjectDetaiSubBLL bll = new Tz888.BLL.TFZS.TFZS_ProjectDetaiSubBLL();

        return(bll.Save(model, IsSave));
    }
Exemplo n.º 2
0
    private decimal Save(CheckBoxList cbl, string code, bool IsSave)
    {
        Tz888.Model.TFZS.TFZS_ProjectDetaiSubModel model = new Tz888.Model.TFZS.TFZS_ProjectDetaiSubModel();
        string Answer = "";

        for (int i = 0; cbl.Items.Count > i; i++)
        {
            if (cbl.Items[i].Selected)
            {
                Answer += cbl.Items[i].Value.Trim() + ",";
            }
        }
        model.id            = 0;
        model.InfoID        = this.InfoID;
        model.ExpressCode   = code;
        model.DicMainCode   = "";
        model.TARGET_ANSWER = Answer;
        model.TARGET_POINT  = 0;

        Tz888.BLL.TFZS.TFZS_ProjectDetaiSubBLL bll = new Tz888.BLL.TFZS.TFZS_ProjectDetaiSubBLL();

        return(bll.Save(model, IsSave));
    }