protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                this.lblDateTime1.Text = DateTime.Now.ToString("MM/dd/yyyy");
                this.lblDateTime2.Text = DateTime.Now.ToString("MM/dd/yyyy");
                this.LoadToolBar();
                this.InitToolBar(true);
                this.lblDebitDate.Text = DateTime.Now.ToString("MM/dd/yyyy");
            }

            if (Request.QueryString["codeid"] != null)
            {
                int codeId = int.Parse(Request.QueryString["codeid"]);
                ListItemRepository repository = new ListItemRepository();
                Entity.ListItem listItem = repository.GetFTAccountCodeById(codeId);
                Entity.ListItem listItem2 = repository.GetCloseAccountCodeById(codeId);
                this.txtId.Text = listItem.Code;
                lblClosedAccount.Text = listItem2.Code;
                lblCustomerName.Text = listItem2.CustomerName;
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.IsPostBack)
     {
         this.LoadToolBar();
         this.lblDebitDate.Text = DateTime.Now.ToString("MM/dd/yyyy");
         lbDateTime1.Text = DateTime.Now.ToString("dd MMM yyyy HH:mm:ss");
         lbDateTime2.Text = DateTime.Now.ToString("dd MMM yyyy HH:mm:ss");
         if (Request.QueryString["codeid"] != null)
         {
             int codeId = int.Parse(Request.QueryString["codeid"]);
             ListItemRepository repository = new ListItemRepository();
             Entity.ListItem listItem = repository.GetCloseAccountCodeById(codeId);
             this.txtId.Text = listItem.Code;
             lblClosedAccount.Text = listItem.Code;
             lblCustomerName.Text = listItem.CustomerName;
             lblDebitAmount.Text = listItem.OnlineActual;
             lblCurrency.Text = listItem.Currency;
             lblCurrencyUnit.Text = listItem.Currency == "VND" ? "DONG" : "$";
         }
     }
 }