Пример #1
0
        internal void ShowDialog(SalesAnalysis salesAnalysis, DateTimePicker dateTimePicker_Start, DateTimePicker dateTimePicker_End, int brandId, string SupplierId, int ClassId, BaseUserControl CurCtrl)
        {
            this.Show(CurCtrl);
            para = new GetSalesAnalysisDeatilInfoPara()
            {
                ShopID        = salesAnalysis.ShopID,
                Type          = salesAnalysis.Type,
                BrandID       = brandId,
                SupplierID    = SupplierId,
                ClassID       = ClassId,
                ParaValue1    = salesAnalysis.TypeValue1,
                ParaValue2    = salesAnalysis.TypeValue2,
                ParaValue3    = salesAnalysis.TypeValue3,
                ParaValue4    = salesAnalysis.TypeValue4,
                ParaValue5    = salesAnalysis.TypeValue5,
                ParaValue6    = salesAnalysis.TypeValue6,
                ParaValue7    = salesAnalysis.TypeValue7,
                ParaValue8    = salesAnalysis.TypeValue8,
                StartDate     = new CJBasic.Date(dateTimePicker_Start.Value),
                EndDate       = new CJBasic.Date(dateTimePicker_End.Value),
                CostumeID     = salesAnalysis.CostumeID,
                IsChooseSize  = skinCheckBoxCostumeSize.Checked,
                IsChooseColor = skinCheckBoxColor.Checked
            };


            //if (salesAnalysis.ShopID != null)
            //{
            //    skinLabelShopName.Text = CommonGlobalCache.GetShopName(salesAnalysis.ShopID);
            //}
            //else
            //{
            //    skinLabelShopName.Text = "";
            //}

            String startDate = dateTimePicker_Start.Value.GetDateTimeFormats('D')[0].ToString();
            String endDate   = dateTimePicker_End.Value.GetDateTimeFormats('D')[0].ToString();

            if (startDate.Equals(endDate))
            {
                skinLabelTime.Text = startDate;
            }
            else
            {
                skinLabelTime.Text = startDate + " 至 " + endDate;
            }
            Search();
            // this.ShowDialog(CurCtrl);
        }
Пример #2
0
        internal void ShowDialog(SalesAnalysis salesAnalysis, DateTimePicker dateTimePicker_Start, DateTimePicker dateTimePicker_End, GetSalesAnalysisPara curPara, BaseUserControl CurCtrl)
        {
            // this.Show(CurCtrl);
            para = new GetSalesAnalysisDeatilInfoPara()
            {
                ShopID        = salesAnalysis.ShopID,
                Type          = salesAnalysis.Type,
                BrandID       = curPara.BrandID,
                SupplierID    = curPara.SupplierID,
                ClassID       = curPara.ClassID,
                ParaValue1    = salesAnalysis.TypeValue1,
                ParaValue2    = salesAnalysis.TypeValue2,
                ParaValue3    = salesAnalysis.TypeValue3,
                ParaValue4    = salesAnalysis.TypeValue4,
                ParaValue5    = salesAnalysis.TypeValue5,
                ParaValue6    = salesAnalysis.TypeValue6,
                ParaValue7    = salesAnalysis.TypeValue7,
                ParaValue8    = salesAnalysis.TypeValue8,
                StartDate     = new CJBasic.Date(dateTimePicker_Start.Value),
                EndDate       = new CJBasic.Date(dateTimePicker_End.Value),
                CostumeID     = salesAnalysis.CostumeID,
                IsChooseSize  = skinCheckBoxCostumeSize.Checked,
                IsChooseColor = skinCheckBoxColor.Checked
            };
            String startDate = dateTimePicker_Start.Value.GetDateTimeFormats('D')[0].ToString();
            String endDate   = dateTimePicker_End.Value.GetDateTimeFormats('D')[0].ToString();

            if (startDate.Equals(endDate))
            {
                skinLabelTime.Text = startDate;
            }
            else
            {
                skinLabelTime.Text = startDate + " 至 " + endDate;
            }

            Search();
            this.ShowDialog(CurCtrl);
        }