コード例 #1
0
 private void LoadControl()
 {
     Hidistro.Membership.Context.Distributor distributor = DistributorHelper.GetDistributor(this.userId);
     if (distributor == null)
     {
         base.GotoResourceNotFound();
         return;
     }
     this.litUserName.Text = distributor.Username;
     this.WangWangConversations.WangWangAccounts = distributor.Wangwang;
     this.drpDistributorGrade.SelectedValue      = new int?(distributor.GradeId);
     this.txtRemark.Text = distributor.Remark;
     System.Collections.Generic.IList <int> distributorProductLines = DistributorHelper.GetDistributorProductLines(this.userId);
     this.chkListProductLine.SelectedValue = distributorProductLines;
 }
コード例 #2
0
        private void LoadControl()
        {
            Distributor distributor = DistributorHelper.GetDistributor(userId);

            if (distributor == null)
            {
                base.GotoResourceNotFound();
            }
            else
            {
                litUserName.Text = distributor.Username;
                WangWangConversations.WangWangAccounts = distributor.Wangwang;
                drpDistributorGrade.SelectedValue      = new int?(distributor.GradeId);
                txtRemark.Text = distributor.Remark;
                IList <int> distributorProductLines = DistributorHelper.GetDistributorProductLines(userId);
                chkListProductLine.SelectedValue = distributorProductLines;
            }
        }