예제 #1
0
        private void LoadData()
        {
            //ShipmentListController ctl = new ShipmentListController();
            //m_AllShipTransData = ctl.LoadAllShipTransByPeriod(dtPeriodBegin.NZValue, dtPeriodEnd.NZValue);
            if (dtPeriodBegin.NZValue.IsNull || dtPeriodEnd.NZValue.IsNull)
            {
                if (dtPeriodBegin.NZValue.IsNull && dtPeriodEnd.NZValue.IsNull)
                {
                    MessageDialog.ShowBusiness(this, Message.LoadMessage(TKPMessages.eValidate.VLM0105.ToString(), new object[] { "Delivery date begin and Delivery date end" }));
                }
                else if (dtPeriodBegin.NZValue.IsNull)
                {
                    MessageDialog.ShowBusiness(this, Message.LoadMessage(TKPMessages.eValidate.VLM0105.ToString(), new object[] { "Delivery date begin" }));
                }
                else
                {
                    MessageDialog.ShowBusiness(this, Message.LoadMessage(TKPMessages.eValidate.VLM0105.ToString(), new object[] { "Delivery date end" }));
                }
                return;
            }

            DeliveryController ctl = new DeliveryController();

            m_AllShipTransData = ctl.Load_DeliveryList(dtPeriodBegin.NZValue, dtPeriodEnd.NZValue);
            //shtView.DataSource = m_AllShipTransData;
            FindDataFromMemory();
            //CtrlUtil.SpreadUpdateColumnSorting(shtView);
        }