Exemplo n.º 1
0
 /// <summary>
 /// 绑定渠道
 /// </summary>
 private void BindChannel()
 {
     cblChannel.DataSource     = channelMO.Get("Cn_Del = 0 and Cn_state =0");
     cblChannel.DataTextField  = "CnName";
     cblChannel.DataValueField = "CnId";
     cblChannel.DataBind();
 }
Exemplo n.º 2
0
 /// <summary>
 /// 判断平台名称是否存在
 /// </summary>
 /// <returns></returns>
 private bool CheckChannelID()
 {
     if (_mo.Get(" Cn_channelId = @Cn_channelId  AND Cn_Del = 0", this.txtChannelId.Text.Trim()).Count() > 0)
     {
         return(false);
     }
     else
     {
         return(true);
     }
 }