Пример #1
0
        /// <summary>
        /// 库位新增
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void barAddLayout_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            ModifyLayout Layout = new ModifyLayout(stockHouseCode, textHouseName.Text);

            Layout.ShowDialog();
            //重新加载库位
            LoadLayout(stockHouseCode);
        }
Пример #2
0
        /// <summary>
        /// 库位修改
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void barModifyLayout_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            StockLayout stockLayout = gViewStockLayout.GetFocusedRow() as StockLayout;

            if (stockLayout != null)
            {
                if (stockLayout.StockLayoutCode == Constants.DEFAULT_STOCKLAYOUT_CODE || stockLayout.LayoutName == "默认库位")
                {
                    XtraMessageBox.Show("系统默认库位,不能修改", Constants.SYSTEM_PROMPT);
                    return;
                }
                ModifyLayout Layout = new ModifyLayout(stockLayout, textHouseName.Text);
                Layout.ShowDialog();
                //重新加载库位
                LoadLayout(stockHouseCode);
            }
        }