示例#1
0
        /// <summary>
        /// 合并领料(弃)
        /// </summary>
        private void BtnMegra_Click(object sender, EventArgs e)
        {
            List <DataRow> ls = new List <DataRow>();

            foreach (int i in gridView1.GetSelectedRows())
            {
                ls.Add(gridView1.GetDataRow(i));
            }

            if (ls.Count < 1)
            {
                throw new Exception("没有选中行!");
            }

            string cInvCode = "";

            ls.ForEach(r =>
            {
                if (cInvCode != "" && r["cInvCode"].ToString() != cInvCode)
                {
                    throw new Exception("所选行存货编码不一致!");
                }
            });

            FmMaterialMerge frm = new FmMaterialMerge(ls.ToArray());

            if (frm.ShowDialog() == DialogResult.OK)
            {
            }
        }
示例#2
0
        private void ShowDetail(object sender, MouseEventArgs e)
        {
            #region 查看单据
            int    index = DGX.FocusedRowHandle;
            string guid  = DGX.GetDataRow(index)["guid"].ToString();

            FmMaterialMerge frm = new FmMaterialMerge(guid);
            //FmMain.NewPageDelegate(frm);
            frm.ShowDialog();
            #endregion
        }