public void LoadCampaign()
        {
            Campaign e = CampaignBLL.Get(CampaignID);

            if (e == null)
            {
            }
            else
            {
                ImageCodabar.ImageUrl = BarcodeBLL.Url4Campaign(e.ID);

                lblName.Text = e.Name;

                if (e.Date != null)
                {
                    lblDate.Text = e.Date.ToStringVN_Hour();
                }

                if (e.Source != null)
                {
                    lblSrc.Text = "Nguồn: " + e.Source.Name;
                }

                if (e.Est != null)
                {
                    lblEst.Text = "SL: " + e.Est.Value.ToString();
                }

                if (e.CoopOrgID != null)
                {
                    lblCoopOrg.Text = "Tổ chức: " + e.CoopOrg.Name;
                }

                if (e.HostOrgID != null)
                {
                    lblHostOrg.Text = "Địa điểm: " + e.HostOrg.Name;
                }

                if (!string.IsNullOrEmpty(e.ContactName))
                {
                    lblContactName.Text = "Người LH: " + e.ContactName;
                    lblTitle.Text       = "Chức vụ: " + e.ContactTitle;
                    lblPhone.Text       = "ĐT: " + e.ContactPhone;
                }

                lblNote.Text = "Ghi chú: " + e.Note;
            }
        }
Beispiel #2
0
        public void LoadCampaign()
        {
            Campaign e = CampaignBLL.Get(CampaignID);

            if (e == null)
            {
            }
            else
            {
                imgCodabar.ImageUrl = BarcodeBLL.Url4Campaign(e.ID);

                txtName.Text = e.Name;

                if (e.Est != null)
                {
                    txtEst.Text = e.Est.Value.ToString();
                }


                if (e.Date != null)
                {
                    txtDate.Text = e.Date.ToStringVN_Hour();
                }

                ddlSource.SelectedValue = e.SourceID.ToString();

                if (e.Type == Campaign.TypeX.Long_run) //Infinity campaign
                {
                    chkInfiCam.Checked = true;
                }

                if (e.CoopOrgID != null)
                {
                    txtCoopOrgName.Text = e.CoopOrg.Name;
                }

                if (e.HostOrgID != null)
                {
                    txtHostOrgName.Text = e.HostOrg.Name;
                }

                txtContactName.Text  = e.ContactName;
                txtContactPhone.Text = e.ContactPhone;
                txtContactTitle.Text = e.ContactTitle;
                txtNote.Text         = e.Note;
            }
        }
Beispiel #3
0
    public void LoadCampaign()
    {
        Campaign e = CampaignBLL.Get(CampaignID);

        if (e == null)
        {
        }
        else
        {
            ImageCodabar.ImageUrl = BarcodeBLL.Url4Campaign(e.ID);

            lblName.Text = e.Name;

            if (e.Date != null)
            {
                lblDate.Text = e.Date.ToStringVN_Hour();
            }

            if (e.Source != null)
            {
                lblSrc.Text = "Nguồn: " + e.Source.Name;
            }

            if (e.Est != null)
            {
                //lblEst.Text = "SL: " + e.Est.Value.ToString();
            }

            if (e.CoopOrgID != null)
            {
                lblCoopOrg.Text = "Đơn vị phối hợp: " + e.CoopOrg.Name;
            }

            if (e.HostOrgID != null)
            {
                lblHostOrg.Text = "Địa điểm tổ chức: " + e.HostOrg.Name;
            }

            lblNote.Text = "Ghi chú: " + e.Note;
        }
    }