Example #1
0
        private void LoadData(Guid Id)
        {
            RequestforApprovedGRNCancelationBLL obj = new RequestforApprovedGRNCancelationBLL();

            obj = obj.GetById(Id);
            if (obj != null)
            {
                if (obj.Id != null)
                {
                    hfGRNID.Value = obj.Id.ToString();
                }
                if (obj.GRN_Number != null)
                {
                    this.txtGRNNo.Text = obj.GRN_Number;
                }
                if (obj.DateRequested != null)
                {
                    this.txtDateRequested.Text = obj.DateRequested.ToString();
                }
                if (obj.Remark != null)
                {
                    this.txtRemark.Text = obj.Remark;
                }
                hfTrackingNo.Value = obj.TrackingNo;

                this.cboStatus.SelectedValue = ((int)obj.Status).ToString();
            }
        }