internal void ShowDialog(GetCostumeStoreChangePara changePara) { para = new GetCostumeStoreChangePara(); ReflectionHelper.CopyProperty(changePara, para); Search(); if (!String.IsNullOrEmpty(para.CostumeID)) { this.Text += ":款号-" + para.CostumeID; } this.ShowDialog(); }
private void BaseButton_Search_Click(object sender, EventArgs e) { try { if (CommonGlobalUtil.EngineUnconnectioned(this)) { return; } string costumeID = string.IsNullOrEmpty(this.costumeTextBox1.SkinTxt.Text) ? null : this.costumeTextBox1.SkinTxt.Text; String color = ((CostumeColor)skinComboBox_Color.SelectedItem).Name;// ValidateUtil.CheckEmptyValue(); String size = ValidateUtil.CheckEmptyValue(skinComboBox_Size.SelectedValue); if (color == CommonGlobalUtil.COMBOBOX_ALL) { color = String.Empty; } // this.dataGridViewPagingSumCtrl.PageSize = int.MaxValue; this.pagePara = new GetCostumeStoreChangePara() { // CostumeStoreChangeType = ValidateUtil.CheckEmptyValue(this.skinComboBoxChangeType.SelectedValue), CostumeID = costumeID, StartDate = new CJBasic.Date(this.dateTimePicker_Start.Value), EndDate = new CJBasic.Date(this.dateTimePicker_End.Value), ColorName = color, SizeName = size, ShopID = shopID, }; CostumeStoreChange listPage = CommonGlobalCache.ServerProxy.GetCostumeStoreChange(this.pagePara); // dataGridViewPagingSumCtrl.Initialize(listPage); // SetSpanInfo(); this.BindingSource(listPage); } catch (Exception ee) { ShowError(ee); } finally { UnLockPage(); } }
private void Initialize() { this.pagePara = new GetCostumeStoreChangePara(); this.costumeTextBox1.SkinTxt.Text = string.Empty; this.dataGridView1.DataSource = null; this.dateTimePicker_Start.Value = DateTime.Now.AddMonths(-1); this.dateTimePicker_End.Value = DateTime.Now; //店铺 CommonGlobalUtil.SetCostumeColor(this.skinComboBox_Color, false, null, false); CommonGlobalUtil.SetCostumeSize(this.skinComboBox_Size, null, CommonGlobalCache.DefaultSizeGroup, true, false); skinComboBox_DestShop.Initialize(true); if (HasPermission(RolePermissionEnum.查看_只看本店)) { this.skinComboBox_DestShop.Enabled = false; shopID = CommonGlobalCache.CurrentShopID; skinComboBox_DestShop.SelectedValue = shopID; } this.skinSplitContainer1.Panel2Collapsed = true; }
private void ShowForm(int type, CostumeStoreChangeInfo item) { if (type == CommonInformationTypes.GetCostumeStoreChange4In) { //采购进货明细 CostumeStoreTrackSearchInForm form = new CostumeStoreTrackSearchInForm(); // this.InboundDetailClick?.Invoke(item.In, this, this.skinSplitContainer1.Panel2); GetCostumeStoreChangePara changePara = new GetCostumeStoreChangePara(); ReflectionHelper.CopyProperty(pagePara, changePara); changePara.StartDate = JGNet.Core.Tools.TimeHelper.GetReportDate(item.Date.ToString()); changePara.EndDate = changePara.StartDate; form.ShowDialog(changePara); } else if (type == CommonInformationTypes.GetCostumeStoreChange4Into) { //调拨单明细 CostumeStoreTrackSearchIntoForm form = new CostumeStoreTrackSearchIntoForm(); GetCostumeStoreChangePara changePara = new GetCostumeStoreChangePara(); ReflectionHelper.CopyProperty(pagePara, changePara); changePara.StartDate = JGNet.Core.Tools.TimeHelper.GetReportDate(item.Date.ToString()); changePara.EndDate = changePara.StartDate; form.ShowDialog(changePara); } else if (type == CommonInformationTypes.GetCostumeStoreChange4Return) { CostumeStoreTrackSearchReturnForm form = new CostumeStoreTrackSearchReturnForm(); GetCostumeStoreChangePara changePara = new GetCostumeStoreChangePara(); ReflectionHelper.CopyProperty(pagePara, changePara); changePara.StartDate = JGNet.Core.Tools.TimeHelper.GetReportDate(item.Date.ToString()); changePara.EndDate = changePara.StartDate; form.ShowDialog(changePara); } else if (type == CommonInformationTypes.GetCostumeStoreChange4TurnOut) { CostumeStoreTrackSearchTurnOutForm form = new CostumeStoreTrackSearchTurnOutForm(); GetCostumeStoreChangePara changePara = new GetCostumeStoreChangePara(); ReflectionHelper.CopyProperty(pagePara, changePara); changePara.StartDate = JGNet.Core.Tools.TimeHelper.GetReportDate(item.Date.ToString()); changePara.EndDate = changePara.StartDate; form.ShowDialog(changePara); } else if (type == CommonInformationTypes.GetCostumeStoreChange4Retail) { CostumeStoreTrackSearchRetailForm form = new CostumeStoreTrackSearchRetailForm(); GetCostumeStoreChangePara changePara = new GetCostumeStoreChangePara(); ReflectionHelper.CopyProperty(pagePara, changePara); changePara.StartDate = JGNet.Core.Tools.TimeHelper.GetReportDate(item.Date.ToString()); changePara.EndDate = changePara.StartDate; form.ShowDialog(changePara); } else if (type == CommonInformationTypes.GetCostumeStoreChange4Scrap) { CostumeStoreTrackSearchScrapForm form = new CostumeStoreTrackSearchScrapForm(); GetCostumeStoreChangePara changePara = new GetCostumeStoreChangePara(); ReflectionHelper.CopyProperty(pagePara, changePara); changePara.StartDate = JGNet.Core.Tools.TimeHelper.GetReportDate(item.Date.ToString()); changePara.EndDate = changePara.StartDate; form.ShowDialog(changePara); } else if (type == CommonInformationTypes.GetCostumeStoreChange4Profit) { CostumeStoreTrackSearchProfitForm form = new CostumeStoreTrackSearchProfitForm(); GetCostumeStoreChangePara changePara = new GetCostumeStoreChangePara(); ReflectionHelper.CopyProperty(pagePara, changePara); changePara.StartDate = JGNet.Core.Tools.TimeHelper.GetReportDate(item.Date.ToString()); changePara.EndDate = changePara.StartDate; form.ShowDialog(changePara); } }