Exemplo n.º 1
0
        private void Btn外包装_Click(object sender, EventArgs e)
        {
            Boolean b = checkUser(Parameter.userName, Parameter.userRole, "产品外包装记录表");

            if (b)
            {
                CS.CS产品外包装记录 myform = new CS产品外包装记录(mainform);
                myform.ShowDialog();
            }
            else
            {
                MessageBox.Show("您无权查看该页面!");
                return;
            }
        }
Exemplo n.º 2
0
        //双击弹出界面
        private void dgv_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex >= 0 && e.ColumnIndex >= 0)
            {
                try
                {
                    int selectIndex = this.dgv.CurrentRow.Index;
                    int ID          = Convert.ToInt32(this.dgv.Rows[selectIndex].Cells["ID"].Value);
                    switch (tableName)
                    {
                    case "制袋生产领料记录":
                        MaterialRecord form1 = new MaterialRecord(mainform, ID);
                        form1.ShowDialog();
                        break;

                    case "产品内包装记录":
                        CSBag_InnerPackaging form2 = new CSBag_InnerPackaging(mainform, ID);
                        form2.ShowDialog();
                        break;

                    case "CS制袋日报表":
                        //Chart_daily_cs form3 = new Chart_daily_cs(mainform, ID);
                        //form3.Show();
                        break;

                    case "产品外观和尺寸检验记录":
                        产品外观和尺寸检验记录 form4 = new 产品外观和尺寸检验记录(mainform, ID);
                        form4.ShowDialog();
                        break;

                    case "产品热合强度检验记录":
                        产品热合强度检验记录 form5 = new 产品热合强度检验记录(mainform, ID);
                        form5.ShowDialog();
                        break;

                    case "2#制袋机开机前确认表":
                        CSBag_CheckBeforePower form6 = new CSBag_CheckBeforePower(mainform, ID);
                        form6.ShowDialog();
                        break;

                    case "2#制袋机运行记录":
                        RunningRecord form7 = new RunningRecord(mainform, ID);
                        form7.ShowDialog();
                        break;

                    case "清场记录":
                        清场记录 myform = new 清场记录(mainform, ID);
                        myform.ShowDialog();
                        break;

                    case "制袋工序批生产记录":
                        Record_batch_bag form8 = new Record_batch_bag(mainform, ID);
                        form8.ShowDialog();
                        break;

                    case "产品外包装记录":
                        CS产品外包装记录 form9 = new CS产品外包装记录(mainform, ID);
                        form9.ShowDialog();
                        break;

                    case "生产退料记录":
                        CS生产退料记录 form10 = new CS生产退料记录(mainform, ID);
                        form10.ShowDialog();
                        break;

                    case "洁净区温湿度记录":
                        CS洁净区温湿度记录 form11 = new CS洁净区温湿度记录(mainform, ID);
                        form11.ShowDialog();
                        break;

                    case "岗位交接班记录":
                        HandOver form12 = new HandOver(mainform, ID);
                        form12.ShowDialog();
                        break;

                    case "生产领料申请单":
                        CS生产领料申请单 form13 = new CS生产领料申请单(mainform, ID, this);

                        break;

                    default:
                        break;
                    }
                }
                catch (Exception ee)
                {
                    MessageBox.Show(ee.Message + "\n" + ee.StackTrace);
                }
            }
        }