Esempio n. 1
0
    void tr_Channel_Selected(object sender, SelectedEventArgs e)
    {
        //根据子渠道自动设定价格渠道
        if (tr_Channel == null)
        {
            return;
        }

        try
        {
            int channel = 0;
            int.TryParse(tr_Channel.SelectValue, out channel);
            if (channel > 0)
            {
                CM_RTChannel_SYS _ch = new CM_RTChannel_SYSBLL(channel).Model;
                if (_ch != null)
                {
                    DropDownList ddl_MKTSGM = (DropDownList)pl_detail.FindControl("CM_ClientManufactInfo_MKTSGM");
                    if (ddl_MKTSGM != null && ddl_MKTSGM.Items.FindByValue(_ch["MKTSGM"]) != null)
                    {
                        ddl_MKTSGM.SelectedValue = _ch["MKTSGM"];
                    }
                }
            }
        }
        catch { }
    }
    void tr_Channel_Selected(object sender, SelectedEventArgs e)
    {
        //根据子渠道自动设定价格渠道
        if (tr_Channel == null) return;

        try
        {
            int channel = 0;
            int.TryParse(tr_Channel.SelectValue, out channel);
            if (channel > 0)
            {
                CM_RTChannel_SYS _ch = new CM_RTChannel_SYSBLL(channel).Model;
                if (_ch != null)
                {
                    DropDownList ddl_MKTSGM = (DropDownList)pl_detail.FindControl("CM_ClientManufactInfo_MKTSGM");
                    if (ddl_MKTSGM != null && ddl_MKTSGM.Items.FindByValue(_ch["MKTSGM"]) != null)
                    {
                        ddl_MKTSGM.SelectedValue = _ch["MKTSGM"];
                    }
                }
            }
        }
        catch { }
    }