Beispiel #1
0
    private void Import()
    {
        try
        {
            string   partyCode      = this.tbRegion.Text.Trim() != string.Empty ? this.tbRegion.Text.Trim() : string.Empty;
            string   timePeriodType = this.ucDateSelect.TimePeriodType;
            DateTime date           = this.ucDateSelect.Date;

            IList <FlowPlan>  flowPlanList = TheImportMgr.ReadShipScheduleYFKFromXls(fileUpload.PostedFile.InputStream, this.CurrentUser, this.ModuleType, partyCode, timePeriodType, date);
            IList <OrderHead> ohList       = TheOrderMgr.ConvertFlowPlanToOrders(flowPlanList);
            if (ImportEvent != null)
            {
                ImportEvent(new object[] { ohList }, null);
            }
            ShowSuccessMessage("Import.Result.Successfully");
        }
        catch (BusinessErrorException ex)
        {
            ShowErrorMessage(ex);
        }
    }