Exemplo n.º 1
0
        /// <summary>
        /// 绑定要补货的集合源
        /// </summary>
        private void BindingInboundDetailSource()
        {
            if (this.curDetailList != null && this.curDetailList.Count > 0)
            {
                foreach (BoundDetail detail in this.curDetailList)
                {
                    detail.CostumeName = CommonGlobalCache.GetCostumeName(detail.CostumeID);
                    Costume cItem = CommonGlobalCache.GetCostume(detail.CostumeID);
                    detail.Year   = cItem.Year;
                    detail.Season = cItem.Season;
                    if (detail.Comment == null)
                    {
                        detail.Comment = "";
                    }
                }


                /*    CostumeStore destShopStore = item?.CostumeStoreList?.Find(t => t.CostumeID == store.CostumeID && t.ColorName == store.ColorName );
                 *  if (destShopStore != null)
                 *  {
                 *      //取收货方的吊牌价售价
                 *      store.Price = destShopStore.Price;
                 *      store.SalePrice = destShopStore.SalePrice;
                 *  }
                 */
                //  this.dataGridView2.DataSource = this.curDetailList;
            }


            dataGridViewPagingSumCtrl2.BindingDataSource <BoundDetail>(DataGridViewUtil.ListToBindingList(this.curDetailList));
            dataGridViewPagingSumCtrl2.ScrollToEnd();
        }
Exemplo n.º 2
0
        private List <PfCustomerStore> curInboundDetailList = new List <PfCustomerStore>();//当前要入库的CostumeStore
        private void BindingInboundDetailSource()
        {
            try
            {
                if (GlobalUtil.EngineUnconnectioned(this))
                {
                    return;
                }
                dataGridViewPagingSumCtrl.BindingDataSource <PfCustomerStore>(DataGridViewUtil.ListToBindingList(this.curInboundDetailList));

                dataGridViewPagingSumCtrl.ScrollToEnd();
            }
            catch (Exception ee)
            {
                GlobalUtil.ShowError(ee);
            }
            finally
            {
                GlobalUtil.UnLockPage(this);
            }
        }
Exemplo n.º 3
0
        private void baseButtonNew_Click(object sender, EventArgs e)
        {
            Role role = new Role();
            int  i    = 1;

            role.Name = "新角色" + i;
            List <Role> roles = DataGridViewUtil.BindingListToList <Role>(dataGridView1.DataSource);

            while (roles.Find(t => t.Name == role.Name) != null)
            {
                i++;
                role.Name = "新角色" + i;
            }
            role.Permissions = new List <int>();
            InteractResult <int> result = GlobalCache.ServerProxy.InsertRole(role);
            int autoId = result.Data;

            role.AutoID = autoId;
            roles.Add(role);
            // this.dataGridView1.Refresh();
            dataGridViewPagingSumCtrl.BindingDataSource(DataGridViewUtil.ListToBindingList <Role>(roles));
            dataGridViewPagingSumCtrl.ScrollToEnd();
            //  roles
        }
Exemplo n.º 4
0
 /// <summary>
 /// 绑定要补货的集合源
 /// </summary>
 private void BindingInboundDetailSource()
 {
     dataGridViewPagingSumCtrl2.BindingDataSource <PfOrderDetail>(DataGridViewUtil.ListToBindingList(this.curInboundDetailList));
     // dataGridViewPagingSumCtrl3.BindingDataSource<PfOrderDetail>(DataGridViewUtil.ListToBindingList(this.curInboundDetailList));
     dataGridViewPagingSumCtrl2.ScrollToEnd();
 }