コード例 #1
0
        private void InitViewPanel()
        {
            this.txtOrderCodeQuery.Text     = OrderNO;
            this.txtOrderCodeQuery.ReadOnly = true;

            this.txtOrderEdit.Text     = OrderNO;
            this.txtOrderEdit.ReadOnly = true;

            this.drpOrderStatusEdit.Items.Clear();
            this.drpOrderStatusEdit.Items.Add(new ListItem("", ""));
            this.drpOrderStatusEdit.Items.Add(new ListItem(languageComponent1.GetString(OrderStatus.InProcess), OrderStatus.InProcess));
            this.drpOrderStatusEdit.Items.Add(new ListItem(languageComponent1.GetString(OrderStatus.Completed), OrderStatus.Completed));
            if (_orderFacade == null)
            {
                _orderFacade = new  FacadeFactory(base.DataProvider).CreateOrderFacade();
            }
            Object obj = _orderFacade.GetOrder(OrderNO);

            this.drpOrderStatusEdit.SelectedValue = (obj as Order).OrderStatus;
            this.drpOrderStatusEdit.Enabled       = false;

            this.txtPlanDateEdit.Text   = FormatHelper.ToDateString((obj as Order).PlanShipDate);
            this.txtPlanDateEdit.Enable = "false";

            this.txtActDateEdit.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(DateTime.MaxValue));
        }