Пример #1
0
    protected void extddlDocSource_extendDropDown_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (this.extddlDocSource.Text == "NA")
        {
            this.extddlSpeciality.Text    = "NA";
            this.extddlSpeciality.Enabled = false;
            try
            {
                while (this.ddlDocType.Items.Count != 0)
                {
                    this.ddlDocType.Items.RemoveAt(0);
                }
                this.ddlDocType.Enabled = false;
            }
            catch (Exception exception)
            {
            }
            return;
        }
        Bill_Sys_Doc_Upload_Settings billSysDocUploadSetting = new Bill_Sys_Doc_Upload_Settings();
        DataSet dataSet = new DataSet();

        dataSet = billSysDocUploadSetting.getDocType(this.txtCompanyID.Text, this.extddlDocSource.Text);
        if (dataSet.Tables[0].Rows.Count > 0)
        {
            this.ddlDocType.DataSource     = dataSet;
            this.ddlDocType.DataTextField  = "SZ_DOCUMENT_TYPE";
            this.ddlDocType.DataValueField = "I_DOC_UPLOAD_ID";
            this.ddlDocType.DataBind();
            this.ddlDocType.Items.Insert(0, "---Select---");
        }
        this.ddlDocType.Enabled       = true;
        this.extddlSpeciality.Text    = "NA";
        this.extddlSpeciality.Enabled = false;
    }
Пример #2
0
    public string SetNode()
    {
        string nodeId = "";

        if (this.extddlSpeciality.Text != "NA" && this.extddlDocSource.Text != "NA" && this.ddlDocType.SelectedValue.ToString() != "" && this.ddlDocType.SelectedValue.ToString() != "---Select---")
        {
            Bill_Sys_Doc_Upload_Settings billSysDocUploadSetting = new Bill_Sys_Doc_Upload_Settings();
            nodeId = billSysDocUploadSetting.GetNodeId(this.txtCompanyID.Text, this.extddlDocSource.Text, this.ddlDocType.SelectedItem.ToString(), this.extddlSpeciality.Text);
        }
        return(nodeId);
    }