Esempio n. 1
0
    protected void lbtnDel_CustomFieldItem_Click(object sender, EventArgs e)
    {
        ACMS.VO.CustomFieldItemVO myCustomFieldItemVO = new ACMS.VO.CustomFieldItemVO();

        int intfield_item_id = (int)GridView_CustomFieldItem.DataKeys[((sender as LinkButton).NamingContainer as GridViewRow).RowIndex].Value;

        ACMS.DAO.CustomFieldItemDAO myCustomFieldItemDAO = new ACMS.DAO.CustomFieldItemDAO();
        myCustomFieldItemDAO.DELETE(intfield_item_id);

        GridView_CustomFieldItem.DataBind();

        this.mpSearch.Show();
    }
Esempio n. 2
0
    protected void lbtnDel_CustomFieldItem_Click(object sender, EventArgs e)
    {
        ACMS.VO.CustomFieldItemVO myCustomFieldItemVO = new ACMS.VO.CustomFieldItemVO();

        int intfield_item_id = (int)GridView_CustomFieldItem.DataKeys[((sender as LinkButton).NamingContainer as GridViewRow).RowIndex].Value;

        ACMS.DAO.CustomFieldItemDAO myCustomFieldItemDAO = new ACMS.DAO.CustomFieldItemDAO();
        myCustomFieldItemDAO.DELETE(intfield_item_id);

        GridView_CustomFieldItem.DataBind();

        this.mpSearch.Show();
    }
Esempio n. 3
0
    protected void btnAdd_Click(object sender, EventArgs e)
    {
        ACMS.VO.CustomFieldItemVO myCustomFieldItemVO = new ACMS.VO.CustomFieldItemVO();

        myCustomFieldItemVO.field_id        = FieldID;
        myCustomFieldItemVO.field_item_name = txtfield_item_name.Text;
        myCustomFieldItemVO.field_item_text = txtfield_item_text.Text;

        ACMS.DAO.CustomFieldItemDAO myCustomFieldItemDAO = new ACMS.DAO.CustomFieldItemDAO();
        myCustomFieldItemDAO.INSERT(myCustomFieldItemVO);

        GridView_CustomFieldItem.DataBind();

        txtfield_item_name.Text = "";
        txtfield_item_text.Text = "";

        this.mpSearch.Show();
    }
Esempio n. 4
0
    protected void btnAdd_Click(object sender, EventArgs e)
    {
        ACMS.VO.CustomFieldItemVO myCustomFieldItemVO = new ACMS.VO.CustomFieldItemVO();

        myCustomFieldItemVO.field_id = FieldID;
        myCustomFieldItemVO.field_item_name = txtfield_item_name.Text;
        myCustomFieldItemVO.field_item_text = txtfield_item_text.Text;

        ACMS.DAO.CustomFieldItemDAO myCustomFieldItemDAO = new ACMS.DAO.CustomFieldItemDAO();
        myCustomFieldItemDAO.INSERT(myCustomFieldItemVO);

        GridView_CustomFieldItem.DataBind();

        txtfield_item_name.Text = "";
        txtfield_item_text.Text = "";

        this.mpSearch.Show();
    }