Ejemplo n.º 1
0
    /// <summary>
    /// 第一次加载数据
    /// </summary>
    private void DataLoad()
    {
        //用户信息 config_id  直接写死
        string config_id = "1005";

        GetFormInfo getfrom = new GetFormInfo();

        //得到操作类型 Detail、Update、Add、DetailNoReturn
        string operate_Type = "Update";

        strManageTitle  = getfrom.GetFormTitle("编辑信息", "edit");
        strManageButton = getfrom.GetFormButton(false, true);

        string pk_Field = "ID";
        string pk_Value = GetID();

        strManageBody = getfrom.GetDetailUpdate(config_id, pk_Field, pk_Value, 2, operate_Type);
    }
Ejemplo n.º 2
0
    /// <summary>
    /// 第一次加载数据
    /// </summary>
    private void DataLoad()
    {
        string config_id = Request.QueryString["config_Id"].ToString();

        GetFormInfo getfrom = new GetFormInfo();

        //得到操作类型 Detail、Update、Add
        string operate_Type = Request.QueryString["operate_Type"].ToString();

        if (operate_Type == "Add")
        {
            strManageTitle  = getfrom.GetFormTitle("添加信息", "edit");
            strManageButton = getfrom.GetFormButton(true, true);
            strManageBody   = getfrom.GetFormAdd(config_id, 2);
        }
        else
        {
            if (operate_Type == "Detail")
            {
                strManageTitle  = getfrom.GetFormTitle("详细信息", "book");
                strManageButton = getfrom.GetFormButton(true, false);
            }
            else if (operate_Type == "DetailNoReturn")
            {
                strManageTitle  = getfrom.GetFormTitle("详细信息", "book");
                strManageButton = getfrom.GetFormButton(false, false);
            }
            else
            {
                strManageTitle  = getfrom.GetFormTitle("编辑信息", "edit");
                strManageButton = getfrom.GetFormButton(true, true);
            }


            string pk_Field = Request.QueryString["pk_Field"].ToString();
            string pk_Value = Request.QueryString["pk_Value"].ToString();
            strManageBody = getfrom.GetDetailUpdate(config_id, pk_Field, pk_Value, 2, operate_Type);
        }
    }