Пример #1
0
 protected void Btn_NewClient_Click(object sender, EventArgs e)
 {
     DropDownList_NewClientRegion.DataSource = PCI.SList_CRMRegionBasicInfoDrop();
     DropDownList_NewClientRegion.DataBind();
     DropDownList_NewClientSort.DataSource = PCI.SList_CRMCustomerSortBasicDataDrop();
     DropDownList_NewClientSort.DataBind();
     Panel_NewClient.Visible = true;
     UpdatePanel_NewClient.Update();
 }
Пример #2
0
 protected void Binddr()
 {
     DropDownList1.DataSource     = pt.Select_SalesMan("");
     DropDownList2.DataSource     = pt.Select_SalesMan("");
     DropDownList1.DataTextField  = "SMSM_Name";
     DropDownList1.DataValueField = "SMSM_Name";
     DropDownList2.DataTextField  = "SMSM_Name";
     DropDownList2.DataValueField = "SMSM_Name";
     DropDownList1.DataBind();
     DropDownList2.DataBind();
     UpdatePanel_NewClient.Update();
     UpdatePanel_ChangeClient.Update();
 }
Пример #3
0
    protected void Btn_NewClientOk_Click(object sender, EventArgs e)
    {
        string CRMCIF_Name    = TextBox_NewCliengName.Text.Trim().ToString();
        string CRMRBI_Name    = DropDownList_NewClientRegion.Text.Trim().ToString();
        string CRMCSBD_Name   = DropDownList_NewClientSort.Text.Trim().ToString();
        string CRMCIF_Address = TextBox_NewClientAdress.Text.Trim().ToString();
        string CRMCIF_BinTag  = DropDownList_NewIsLabel.Text.Trim().ToString();
        string salesman       = DropDownList1.SelectedValue.ToString();

        PCI.I_CRMCustomerInfo(CRMCIF_Name, CRMRBI_Name, CRMCSBD_Name, CRMCIF_Address, CRMCIF_BinTag, salesman);
        GridView_Client.DataSource = PCI.SList_CRMCustomerInfoBind();
        GridView_Client.DataBind();
        UpdatePanel_ClientInfo.Update();
        ScriptManager.RegisterStartupScript(Page, typeof(Page), "alert", "alert('新增成功!')", true);
        Panel_NewClient.Visible = false;
        UpdatePanel_NewClient.Update();
        return;
    }
Пример #4
0
 protected void Btn_NewClientCancel_Click(object sender, EventArgs e)
 {
     Panel_NewClient.Visible = false;
     UpdatePanel_NewClient.Update();
 }