Пример #1
0
        /// <summary>
        /// 查看包的详情
        /// </summary>
        public virtual void ShowSetPackDetail()
        {
            DataGridView setDataGrid = CnasUtilityTools.FindControl <DataGridView>(this, "setDataGrid");

            if (setDataGrid != null)
            {
                if (setDataGrid.SelectedRows != null && setDataGrid.SelectedRows.Count == 1)
                {
                    if (setDataGrid.Columns.Contains("setBarCodeCol") &&
                        setDataGrid.SelectedRows[0].Cells["setBarCodeCol"] != null)
                    {
                        string code = setDataGrid.SelectedRows[0].Cells["setBarCodeCol"].Value.ToString();
                        if (code.Length > 3)
                        {
                            SortedList condition = new SortedList();
                            condition.Add(BarCodeHelper.GetBarCodeByType("BCV", ScanBarCodes), "BCV");
                            condition.Add(code, code.Substring(0, 3));
                            HCSWF_set_detail detail = new HCSWF_set_detail(condition);
                            detail.ShowDialog();
                        }
                    }
                }
                else
                {
                    MessageBox.Show(PromptMessageXmlHelper.Instance.GetPromptMessage("selectset", EnumPromptMessage.warning), "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }
            else
            {
                MessageBox.Show(PromptMessageXmlHelper.Instance.GetPromptMessage("notfindSetGrid", EnumPromptMessage.error), "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Пример #2
0
        /// <summary>
        /// 查看包的闲情
        /// </summary>
        public override void ShowSetPackDetail()
        {
            string code = Convert.ToString(setNameTxt.Tag);

            if (code.Length > 3)
            {
                SortedList condition = new SortedList();
                condition.Add(BarCodeHelper.GetBarCodeByType("BCV", ScanBarCodes), "BCV");
                condition.Add(code, code.Substring(0, 3));
                HCSWF_set_detail detail = new HCSWF_set_detail(condition);
                detail.ShowDialog();
            }
        }