/// <summary> /// 将CostumeStore转化为InboundDetail /// </summary> /// <param name="store"></param> /// <returns></returns> private PfOrderDetail CostumeStoreConvertToInboundDetail(CostumeStore store) { if (store == null) { return(null); } return(new PfOrderDetail() { //ReplenishOrderID = replenishOrderID, CostumeID = store.CostumeID, CostumeName = store.CostumeName, BrandName = store.BrandName, ColorName = store.ColorName, CustomerID = ValidateUtil.CheckEmptyValue(this.skinComboBox_PfCustomer.SelectedValue), //IsStatistics = true, // Discount = store.Discount, BrandID = store.BrandID, XS = store.XS, S = store.S, M = store.M, L = store.L, F = store.F, XL = store.XL, XL2 = store.XL2, XL3 = store.XL3, XL4 = store.XL4, XL5 = store.XL5, XL6 = store.XL6, Price = store.Price, PfPrice = store.CostPrice, Comment = store.Remarks, }); }
/// <summary> /// 绑定选定款号对应的CostumeStore集合 /// </summary> private void BindingSelectedCostumeStoreSource() { if (this.curSelectedCostumeStoreList != null && this.curSelectedCostumeStoreList.Count > 0) { List <CostumeStore> tempList = new List <CostumeStore>(); foreach (CostumeStore store in this.curSelectedCostumeStoreList) { store.Title = "店铺库存"; CostumeStore tempStore = this.BuildCostumeStore4NeedReplenish(store); tempList.Add(store); tempList.Add(tempStore); } this.curSelectedCostumeStoreList = tempList; } this.dataGridViewPagingSumCtrl.SetDataSource <CostumeStore>(DataGridViewUtil.ListToBindingList(this.curSelectedCostumeStoreList)); foreach (DataGridViewRow row in dataGridView1.Rows) { if (row.Index % 2 == 0) { row.ReadOnly = true; row.HeaderCell.Value = "店铺库存"; } else { row.ReadOnly = false; row.HeaderCell.Value = "发货"; } } // cell获取焦点 dataGridViewPagingSumCtrl.AutoFocusToWritableCell(); }
private CostumeStoreExcel GetCostumeStoreExcel(CostumeStore item) { CostumeStoreExcel excel = new CostumeStoreExcel(); ReflectionHelper.CopyProperty(item, excel); return(excel); }
private CostumeStore currentSelectedStore; //当前选中的CostumeStore private void skinComboBox_Color_SelectedIndexChanged(object sender, EventArgs e) { //根据颜色获取对应尺码库存信息 this.currentSelectedStore = this.currentSelectedItem.CostumeStoreList.Find(c => { return(c.ColorName == ValidateUtil.CheckEmptyValue(this.skinComboBox_Color.SelectedValue)); }); CommonGlobalUtil.SetCostumeSize(skinComboBox_Size, currentSelectedItem.Costume); //sizes = skinComboBox_Size.DataSource as List<ListItem<String>>; //skinComboBox_Size.DataSource = null; //skinComboBox_Size.DataSource = sizes; }
/// <summary> /// 获取指定款号库存 中指定颜色的数量 /// </summary> /// <param name="store">库存实体</param> /// <param name="sizeType">DB中的尺码标识</param> /// <returns></returns> public static void AddStoreCountBySize(CostumeStore store, string sizeType, short value) { if (store == null) { return; } switch (sizeType) { case CostumeSize.XS: store.XS += value; break; case CostumeSize.S: store.S += value; break; case CostumeSize.M: store.M += value; break; case CostumeSize.L: store.L += value; break; case CostumeSize.XL: store.XL += value; break; case CostumeSize.XL2: store.XL2 += value; break; case CostumeSize.XL3: store.XL3 += value; break; case CostumeSize.XL4: store.XL4 += value; break; case CostumeSize.XL5: store.XL5 += value; break; case CostumeSize.XL6: store.XL6 += value; break; case CostumeSize.F: store.F += value; break; default: break; } }
private BoundDetail CostumeStoreConvertToOutboundDetail(CostumeStore costumeStore) { return(new BoundDetail() { CostumeID = costumeStore.CostumeID, ColorName = costumeStore.ColorName, CostumeName = costumeStore.CostumeName, Price = costumeStore.Price }); }
/// <summary> /// 绑定选定款号对应的CostumeStore集合 /// </summary> private void BindingSelectedCostumeStoreSource() { if (this.curSelectedCostumeStoreList == null) { this.dataGridView1.DataSource = null; } else { dataGridViewPagingSumCtrl.DisableStyle(); this.dataGridView1.DataSource = null; if (this.curSelectedCostumeStoreList != null && this.curSelectedCostumeStoreList.Count > 0) { List <CostumeStore> tempList = new List <CostumeStore>(); foreach (CostumeStore store in this.curSelectedCostumeStoreList) { store.Title = "库存"; store.CostumeName = GlobalCache.GetCostumeName(store.CostumeID); CostumeStore tempStore = this.BuildCostumeStore4NeedReplenish(store); //CJBasic.Helpers.ReflectionHelper.CopyProperty(store, obj); tempList.Add(store); tempList.Add(tempStore); } this.curSelectedCostumeStoreList = tempList; ////重新排序,同款同颜色排一起,且将补货数量拍在库存后面 //this.curSelectedCostumeStoreList.Sort((x, y) => //{ // int sort = x.ColorName.CompareTo(y.ColorName); // if (sort == 0) // { // sort = -x.Title.CompareTo(y.Title); // } // return sort; //}); this.dataGridView1.DataSource = this.curSelectedCostumeStoreList; foreach (DataGridViewRow row in dataGridView1.Rows) { if (row.Index % 2 == 0) { row.ReadOnly = true; row.HeaderCell.Value = "库存"; } else { row.ReadOnly = false; row.HeaderCell.Value = "补货申请"; } } dataGridViewPagingSumCtrl.EnableStyle(); } } this.dataGridView1.Refresh(); dataGridViewPagingSumCtrl.AutoFocusToWritableCell(); }
/// <summary> /// 根据尺码别名 转换为 对应的库存对象 /// </summary> /// <param name="infos"></param> /// <returns></returns> public static CostumeStore GetCostumeStore4SizeNameAlias(List <CostumeStoreInfo> infos, SizeGroup sizeGroup) { CostumeStore costumeStore = new CostumeStore(); foreach (CostumeStoreInfo info in infos) { string sizeName = GetCostumeSize(info.SizeName, sizeGroup); AddStoreCountBySize(costumeStore, sizeName, (short)info.Count); } return(costumeStore); }
private void costumeFromSupplierTextBox1_CostumeSelected(Costume costumeItem, bool isEnter) { if (isEnter) { this.costumeItem = costumeItem; if (costumeItem == null) { this.curSelectedCostumeStoreList = null; this.textBoxAmount.Text = string.Empty; skinLabelPrice.Text = string.Empty; } else { List <CostumeStore> CStore = CostumeFromSupplierTextBox.GetCostumeStores(costumeItem); // this.curSelectedCostumeStoreList = InteractResult <List <PfCustomerStore> > interResultList = CommonGlobalCache.ServerProxy.GetPfCustomerStoreList(pfCustomer.ID, costumeItem.ID); List <PfCustomerStore> PfCustomerStore = new List <PfCustomerStore>(); if (interResultList.Data != null && interResultList.Data.Count > 0) { PfCustomerStore = interResultList.Data; } List <CostumeStore> tempList = new List <CostumeStore>(); foreach (CostumeStore store in CStore) { CostumeStore Cstore = BuildPfCostumeStore4(store, PfCustomerStore); tempList.Add(Cstore); store.Title = "退货"; tempList.Add(store); } this.curSelectedCostumeStoreList = tempList; // this.costumeFromSupplierTextBox1.SkinTxt.Text = costumeItem.ID; //计算客户折扣 批发价 // ShowMessage("balanceRound=" + balanceRound + "系统设置:" + GlobalCache.GetParameter(ParameterConfigKey.PfPriceRound).ParaValue); /* if (balanceRound) * { * this.textBoxAmount.Value = costumeItem.Price == 0 ? 0 : Math.Round(costumeItem.Price * pfCustomer.PfDiscount * (decimal)0.01, MidpointRounding.AwayFromZero); * } * else * { * this.textBoxAmount.Value = costumeItem.Price == 0 ? 0 : Math.Round(costumeItem.Price * pfCustomer.PfDiscount * (decimal)0.01, 2, MidpointRounding.AwayFromZero); * }*/ skinLabelPrice.Text = costumeItem.Price.ToString(); CheckStorePrice(pfCustomer.ID, costumeItem.ID); } this.BindingSelectedCostumeStoreSource(); } }
private void AddStoreCache(List <CostumeStore> list) { foreach (var item in list) { CostumeStore c = orderStoreCache.Find(t => t.CostumeID.ToUpper() == item.CostumeID.ToUpper() && t.ColorName == item.ColorName); if (c != null) { orderStoreCache.Remove(c); } orderStoreCache.Add(item); } }
private void dataGridView1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) { DataGridViewRow row = dataGridView1.Rows[e.RowIndex]; CostumeStore item = (CostumeStore)row.DataBoundItem; if (row.DataBoundItem != null) { if (costumeNameDataGridViewTextBoxColumn.Index == e.ColumnIndex) { e.Value = GlobalCache.GetCostumeName(item.CostumeID); } } }
private BoundDetail CostumeStoreConvertToOutboundDetail(CostumeStore store, string replenishOrderID) { if (store == null) { return(null); } Costume costume = GlobalCache.GetCostume(store.CostumeID); BoundDetail boundDetail = new BoundDetail(); ReflectionHelper.CopyProperty(costume, boundDetail); ReflectionHelper.CopyProperty(store, boundDetail); boundDetail.SupplierID = ValidateUtil.CheckEmptyValue(this.skinComboBoxSupplierID.SelectedValue); return(boundDetail); }
private Boolean CheckDuplicates(List <CostumeStore> stores) { bool add = true; List <CostumeStore> details = new List <CostumeStore>(); foreach (var detail in stores) { //判断是否存在相同款号颜色,如果有则提示是否累加,确定就累加原来的,否的话则取消 if (curInboundDetailList.Exists(t => t.ShopID == detail.ShopID && t.CostumeID == detail.CostumeID && t.ColorName == detail.ColorName)) { details.Add(detail); } } if (details != null && details.Count > 0) { String value = string.Empty; foreach (var item in details) { value = item.CostumeID + " " + item.ColorName + "\r\n"; } if (GlobalMessageBox.Show(value + "已存在,是否覆盖?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { foreach (var detail in stores) { if (details.Contains(detail)) { CostumeStore existDetail = curInboundDetailList.Find(t => t.ShopID == detail.ShopID && t.CostumeID == detail.CostumeID && t.ColorName == detail.ColorName); // dataGridViewPagingSumCtrl(curInboundDetailList.IndexOf(existDetail)); ReflectionHelper.CopyProperty(detail, existDetail); } else { curInboundDetailList.Add(detail); } } } else { add = false; } } else { curInboundDetailList.AddRange(stores); } // return(add); }
public static void SetSizeName4CostumeStore(CostumeStore costumeStore, SizeGroup sizeGroup) { List <CostumeStoreInfo> infos = new List <CostumeStoreInfo>(); foreach (string sizeColumn in costumeSizeColumn) { infos.Add(new CostumeStoreInfo() { OriginalSizeName = sizeColumn, SizeName = GetCostumeSizeName(sizeColumn, sizeGroup), Count = GetStoreCountBySize(costumeStore, sizeColumn) }); } costumeStore.CostumeStoreInfos = infos; }
/// <summary> /// 将CostumeStore转化为InboundDetail /// </summary> /// <param name="store"></param> /// <returns></returns> private BoundDetail CostumeStoreConvertToInboundDetail(CostumeStore store, string replenishOrderID) { if (store == null) { return(null); } BoundDetail b = new BoundDetail(); CJBasic.Helpers.ReflectionHelper.CopyProperty(store, b); b.Comment = store.Remarks; b.Price = store.Price; b.SalePrice = store.SalePrice; return(b); }
private void HighlightCostume(CostumeStore store) { if (dataGridView1.Rows != null && dataGridView1.Rows.Count > 0) { foreach (DataGridViewRow row in dataGridView1.Rows) { PfCustomerStore rowStore = row.DataBoundItem as PfCustomerStore; if (rowStore.PfCustomerID == store.ShopID && rowStore.CostumeID == store.CostumeID && rowStore.ColorName == store.ColorName) //? { row.DefaultCellStyle.ApplyStyle(new DataGridViewCellStyle() { BackColor = Color.LightYellow }); } } } }
private void ResetAll() { this.skinTextBox_ID.Text = string.Empty; this.skinTextBox_Name.Text = string.Empty; this.numericUpDown_Price.Value = 0; this.numericUpDownCostPrice.Value = 0; this.numericTextBoxSalePrice.Value = 0; this.skinTextBox_Remarks.Text = string.Empty; this.ColorList = new List <ListItem <string> >(); List <CostumeStore> stores = new List <CostumeStore>(); CostumeStore store = new CostumeStore(); stores.Add(store); dataGridViewPagingSumCtrl.BindingDataSource(stores); this.BaseButton3.Text = "保存"; }
/// <summary> /// 根据现在库存对象生成需补货的库存对象 /// </summary> /// <param name="oldCostumeStore"></param> /// <returns></returns> private CostumeStore BuildCostumeStore4NeedReplenish(CostumeStore oldCostumeStore, ReplenishDetail detail) { CostumeStore store = null; if (oldCostumeStore != null) { store = new CostumeStore() { CostumeID = oldCostumeStore.CostumeID, CostumeName = oldCostumeStore.CostumeName, ColorName = oldCostumeStore.ColorName, AllowReviseDiscount = oldCostumeStore.AllowReviseDiscount, ShopID = oldCostumeStore.ShopID, Price = oldCostumeStore.Price, CostPrice = oldCostumeStore.CostPrice, Title = "补货申请", F = 0, L = 0, XS = 0, M = 0, S = 0, XL = 0, XL2 = 0, XL3 = 0, XL4 = 0, XL5 = 0, XL6 = 0 }; if (detail != null) { store.F = detail.F; store.L = detail.L; store.XS = detail.XS; store.M = detail.M; store.S = detail.S; store.XL = detail.XL; store.XL2 = detail.XL2; store.XL3 = detail.XL3; store.XL4 = detail.XL4; store.XL5 = detail.XL5; store.XL6 = detail.XL6; } } return(store); }
/// <summary> /// 获取指定款号库存 中指定颜色的数量 /// </summary> /// <param name="store">库存实体</param> /// <param name="sizeType">DB中的尺码标识</param> /// <returns></returns> public static int GetStoreCountBySize(CostumeStore store, string sizeType) { if (store == null) { return(0); } switch (sizeType) { case CostumeSize.XS: return(store.XS); case CostumeSize.S: return(store.S); case CostumeSize.M: return(store.M); case CostumeSize.L: return(store.L); case CostumeSize.XL: return(store.XL); case CostumeSize.XL2: return(store.XL2); case CostumeSize.XL3: return(store.XL3); case CostumeSize.XL4: return(store.XL4); case CostumeSize.XL5: return(store.XL5); case CostumeSize.XL6: return(store.XL6); case CostumeSize.F: return(store.F); default: return(0); } }
private void dataGridView2_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex > -1 && e.ColumnIndex > -1) { DataGridViewCell cell = dataGridView2.Rows[e.RowIndex].Cells[e.ColumnIndex]; CostumeStore store = (CostumeStore)cell.OwningRow.DataBoundItem; //获取颜色 //获取尺码 this.skinComboBox_Color.SelectedItem = store.ColorName; if (cell.ColumnIndex != colorNameDataGridViewTextBoxColumn1.Index) { this.skinComboBox_Size.SelectedValue = cell.OwningColumn.DataPropertyName; } this.skinTextBox_bugCount.Text = "1"; this.skinTextBox_bugCount.Focus(); } }
private static CostumeStore SetupStores(CostumeItem costumeItem, String color) { CostumeStore store = new CostumeStore(); ReflectionHelper.CopyProperty(costumeItem.Costume, store); store.ColorName = color; store.F = 0; store.L = 0; store.XS = 0; store.M = 0; store.S = 0; store.XL = 0; store.XL2 = 0; store.XL3 = 0; store.XL4 = 0; store.XL5 = 0; store.XL6 = 0; return(store); }
private void BindingSelectedCostumeStoreSource(BoundDetail detail) { if (this.curSelectedCostumeStoreList == null) { this.dataGridView1.DataSource = null; } else { this.dataGridView1.DataSource = null; if (this.curSelectedCostumeStoreList != null && this.curSelectedCostumeStoreList.Count > 0) { List <CostumeStore> tempList = new List <CostumeStore>(); foreach (CostumeStore store in this.curSelectedCostumeStoreList) { store.Title = "库存"; CostumeStore tempStore = this.BuildCostumeStore4NeedReplenish(store, detail); //CJBasic.Helpers.ReflectionHelper.CopyProperty(store, obj); tempList.Add(store); tempList.Add(tempStore); } this.curSelectedCostumeStoreList = tempList; this.dataGridView1.DataSource = DataGridViewUtil.ListToBindingList(this.curSelectedCostumeStoreList); } } foreach (DataGridViewRow row in dataGridView1.Rows) { if (row.Index % 2 == 0) { row.ReadOnly = true; row.HeaderCell.Value = "库存"; } else { row.ReadOnly = false; row.HeaderCell.Value = "退货"; } } // cell获取焦点 dataGridViewPagingSumCtrl1.AutoFocusToWritableCell(); // this.dataGridView1.Refresh(); }
public static void SetSizeName4CostumeStore(string[] costumeSizes, CostumeStore costumeStore, SizeGroup sizeGroup) { if (costumeSizes == null || costumeSizes.Length == 0) { return; } List <CostumeStoreInfo> infos = new List <CostumeStoreInfo>(); foreach (string sizeColumn in costumeSizes) { infos.Add(new CostumeStoreInfo() { OriginalSizeName = sizeColumn, SizeName = GetCostumeSizeName(sizeColumn, sizeGroup), Count = GetStoreCountBySize(costumeStore, sizeColumn) }); } costumeStore.CostumeStoreInfos = infos; }
private CostumeStore BuildCostumeStore4NeedReplenish(CostumeStore oldCostumeStore, BoundDetail detail) { CostumeStore store = null; if (oldCostumeStore != null) { store = new CostumeStore() { }; ReflectionHelper.CopyProperty(oldCostumeStore, store); store.Title = "退货"; store.F = 0; store.L = 0; store.XS = 0; store.M = 0; store.S = 0; store.XL = 0; store.XL2 = 0; store.XL3 = 0; store.XL4 = 0; store.XL5 = 0; store.XL6 = 0; if (detail != null) { store.F = detail.F; store.L = detail.L; store.XS = detail.XS; store.M = detail.M; store.S = detail.S; store.XL = detail.XL; store.XL2 = detail.XL2; store.XL3 = detail.XL3; store.XL4 = detail.XL4; store.XL5 = detail.XL5; store.XL6 = detail.XL6; store.CostPrice = detail.CostPrice; } } return(store); }
private static CostumeStore GetCostumeStore(Costume costume) {//color not existed,then add one CostumeStore costumeStore = new CostumeStore(); ReflectionHelper.CopyProperty(costume, costumeStore); costumeStore.CostumeName = costume.Name; costumeStore.CostumeID = costume.ID; costumeStore.F = 0; costumeStore.L = 0; costumeStore.XS = 0; costumeStore.M = 0; costumeStore.S = 0; costumeStore.XL = 0; costumeStore.XL2 = 0; costumeStore.XL3 = 0; costumeStore.XL4 = 0; costumeStore.XL5 = 0; costumeStore.XL6 = 0; return(costumeStore); }
private bool CheckDuplicate(CostumeStore detail) { //判断是否存在相同款号颜色,如果有则提示是否累加,确定就累加原来的,否的话则取消 if (curInboundDetailList.Exists(t => t.ShopID == detail.ShopID && t.CostumeID == detail.CostumeID && t.ColorName == detail.ColorName)) { int index = curInboundDetailList.FindIndex(t => t.ShopID == detail.ShopID && t.CostumeID == detail.CostumeID && t.ColorName == detail.ColorName); CostumeStore existDetail = null; if (index >= 0) { existDetail = curInboundDetailList[index]; dataGridViewPagingSumCtrl.ScrollToRowIndex(index); GlobalMessageBox.Show("该款号颜色已存在,第" + (index + 1) + "行,请直接修改"); return(true); } } else { curInboundDetailList.Add(detail); } return(false); }
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { if (!DataGridViewUtil.CheckPerrmisson(this, sender, e)) { return; } if (e.RowIndex < 0 || e.ColumnIndex < 0) { return; } try { switch (this.dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value) { case "编辑": CostumeStore store = this.dataGridView1.Rows[e.RowIndex].DataBoundItem as CostumeStore; EarlyStageCostumeStoreRecordSaveCostumeForm form = new EarlyStageCostumeStoreRecordSaveCostumeForm(store); if (form.ShowDialog() == DialogResult.OK) { this.BaseButton_Search_Click(null, null); } break; case "删除": DialogResult dialogResult = GlobalMessageBox.Show("确定删除该行数据吗?", "提示", MessageBoxButtons.OKCancel); if (dialogResult != DialogResult.OK) { return; } // GlobalCache.ServerProxy.HideCreateStore() this.curInboundDetailList.RemoveAt(e.RowIndex); this.BindingInboundDetailSource(); break; } } catch (Exception ee) { GlobalUtil.ShowError(ee); } }
private static List <CostumeStore> SetupStores(Costume costume) { List <CostumeStore> store = new List <CostumeStore>(); ReflectionHelper.CopyProperty(costume, store); foreach (string s in costume.Colors.Split(',')) { CostumeStore sItem = new CostumeStore(); sItem.ColorName = s; sItem.F = 0; sItem.L = 0; sItem.XS = 0; sItem.M = 0; sItem.S = 0; sItem.XL = 0; sItem.XL2 = 0; sItem.XL3 = 0; sItem.XL4 = 0; sItem.XL5 = 0; sItem.XL6 = 0; store.Add(sItem); } return(store); }
private void GetData() { List <ReplenishDetail> curReplenishDetailList = CommonGlobalCache.ServerProxy.GetReplenishDetail(this.order.ID); List <BoundDetail> detailList = new List <BoundDetail>(); foreach (var item in curReplenishDetailList) { BoundDetail detail = new BoundDetail(); ReflectionHelper.CopyProperty(item, detail); List <CostumeItem> costumesItemList = CommonGlobalCache.ServerProxy.GetCostumeStoreList(new CostumeStoreListPara() { CostumeID = item.CostumeID, IsOnlyShowValid = false, ShopID = ValidateUtil.CheckEmptyValue(skinComboBoxShopID.SelectedValue), }); CostumeItem curCostumeItem = costumesItemList.Find(t => t.Costume.ID == item.CostumeID); // CostumePrice destShopStore = CommonGlobalCache.ServerProxy.GetCostumeStorePrice(ValidateUtil.CheckEmptyValue(skinComboBoxShopID.SelectedValue),item.CostumeID); // GlobalMessageBox.Show(CommonGlobalCache.GetShopName(ValidateUtil.CheckEmptyValue(skinComboBoxShopID.SelectedValue))); CostumeStore destShopStore = curCostumeItem?.CostumeStoreList?.Find(t => t.CostumeID == item.CostumeID && t.ColorName == item.ColorName); if (destShopStore != null) { //取收货方的吊牌价售价 detail.Price = destShopStore.Price; detail.SalePrice = destShopStore.SalePrice; } detailList.Add(detail); } curDetailList = detailList; }
private CostumeStore currentSelectedStore; //当前选中的CostumeStore private void skinComboBox_Color_SelectedIndexChanged(object sender, EventArgs e) { //根据颜色获取对应尺码库存信息 if (isHasStore) { this.currentSelectedStore = this.currentSelectedItem.CostumeStoreList.Find(c => { return(c.ColorName == ValidateUtil.CheckEmptyValue(this.skinComboBox_Color.SelectedValue)); }); CommonGlobalUtil.SetCostumeSize(this.skinComboBox_Size, currentSelectedItem?.Costume); string pfCustomeId = ValidateUtil.CheckEmptyValue(customerComboBox.SelectedValue); string CostomerID = CostumeCurrentShopTextBox1.SkinTxt.Text; string cColorName = ValidateUtil.CheckEmptyValue(this.skinComboBox_Color.SelectedValue); string CountStr = string.Empty; InteractResult <PfCustomerStore> result = GlobalCache.ServerProxy.GetOnePfCustomerStore(pfCustomeId, CostomerID, cColorName); if (result.ExeResult == ExeResult.Success) { if (result.Data != null) { CountStr = result.Data.CoutString; } } this.skinLabelCountStr.Text = CountStr + " "; } }