コード例 #1
0
 /// <summary>
 /// Insert a PCFirstOnlineCheckDetail.
 /// </summary>
 public void Insert(Model.PCFirstOnlineCheckDetail pCFirstOnlineCheckDetail)
 {
     //
     // todo:add other logic here
     //
     accessor.Insert(pCFirstOnlineCheckDetail);
 }
コード例 #2
0
 /// <summary>
 /// Update a PCFirstOnlineCheckDetail.
 /// </summary>
 public void Update(Model.PCFirstOnlineCheckDetail pCFirstOnlineCheckDetail)
 {
     //
     // todo: add other logic here.
     //
     accessor.Update(pCFirstOnlineCheckDetail);
 }
コード例 #3
0
 //厚度
 private void repositoryItemHyperLinkEdit2_Click(object sender, EventArgs e)
 {
     Model.PCFirstOnlineCheckDetail d = (this.bindingSourceDetail.Current as Model.PCFirstOnlineCheckDetail);
     if (d != null)
     {
         ThicknessTest f = new ThicknessTest(d.PCFirstOnlineCheckDetailId, 1);
         f.ShowDialog();
     }
 }
コード例 #4
0
 //冲击
 private void repositoryItemHyperLinkEdit3_Click(object sender, EventArgs e)
 {
     Model.PCFirstOnlineCheckDetail d = (this.bindingSourceDetail.Current as Model.PCFirstOnlineCheckDetail);
     if (d != null)
     {
         PCImpactCheck.EditForm f = new Book.UI.produceManager.PCImpactCheck.EditForm(d.PCFirstOnlineCheckDetailId, 1);
         f.ShowDialog();
     }
 }
コード例 #5
0
        private void subReportHD_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            subReportHD subHD = this.subReportHD.ReportSource as subReportHD;

            Model.PCFirstOnlineCheckDetail detail = this.GetCurrentRow() as Model.PCFirstOnlineCheckDetail;
            if (detail != null && detail.Houdu != "△")
            {
                subHD._PCPGOnlineCheckDetailId = detail.PCFirstOnlineCheckDetailId;
            }
        }
コード例 #6
0
        private void subreportChongji_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            ROImpactCheck subChongji = this.subreportChongji.ReportSource as ROImpactCheck;

            Model.PCFirstOnlineCheckDetail detail = this.GetCurrentRow() as Model.PCFirstOnlineCheckDetail;
            if (detail != null && detail.Chongji != "△")
            {
                subChongji.PCImpactCheck = new Book.BL.PCImpactCheckManager().PFCGetFirst(detail.PCFirstOnlineCheckDetailId);
            }
        }
コード例 #7
0
 //光学
 private void repositoryItemHyperLinkEdit1_Click(object sender, EventArgs e)
 {
     Model.PCFirstOnlineCheckDetail d = (this.bindingSourceDetail.Current as Model.PCFirstOnlineCheckDetail);
     if (d != null)
     {
         OpticsTest f = new OpticsTest(d.PCFirstOnlineCheckDetailId, 2);
         f.PronoteHeaderId = d.PronoteHeaderId;
         f.ShowDialog();
     }
 }
コード例 #8
0
        private void subReportGX_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            subReportGX subGX = this.subReportGX.ReportSource as subReportGX;

            Model.PCFirstOnlineCheckDetail detail = this.GetCurrentRow() as Model.PCFirstOnlineCheckDetail;
            if (detail != null && detail.Guangxue != "△")
            {
                subGX._PCPGOnlineCheckDetailId = detail.PCFirstOnlineCheckDetailId;
            }
        }
コード例 #9
0
ファイル: List.cs プロジェクト: daobataotie/Mobe
        protected override Book.UI.Settings.BasicData.BaseEditForm GetEditForm(object[] args)
        {
            Type type = typeof(Editform);

            Model.PCFirstOnlineCheckDetail detail = args[0] as Model.PCFirstOnlineCheckDetail;
            if (detail != null)
            {
                args[0] = detail.PCFirstOnlineCheck;

                return((Editform)type.Assembly.CreateInstance(type.FullName, false, System.Reflection.BindingFlags.CreateInstance, null, args, null, null));
            }
            return(new Editform());
        }
コード例 #10
0
ファイル: RO.cs プロジェクト: daobataotie/EDERP
        private void subreportErsai_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            this.subreportErsai.ReportSource = new ROResilience();
            ROResilience subErsai = this.subreportErsai.ReportSource as ROResilience;

            Model.PCFirstOnlineCheckDetail detail = this.GetCurrentRow() as Model.PCFirstOnlineCheckDetail;

            this.subreportErsai.Visible        = true;
            subErsai.PCEarplugsResilienceCheck = new BL.PCEarplugsResilienceCheckManager().PFCGetFirst(detail.PCFirstOnlineCheckDetailId);
            if (subErsai.PCEarplugsResilienceCheck == null)
            {
                this.subreportErsai.ReportSource = null;
                this.subreportErsai.Visible      = false;
            }
        }
コード例 #11
0
ファイル: RO.cs プロジェクト: daobataotie/Mobe
        private void subReportHD_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            subReportHD subHD = this.subReportHD.ReportSource as subReportHD;

            Model.PCFirstOnlineCheckDetail detail = this.GetCurrentRow() as Model.PCFirstOnlineCheckDetail;
            if (detail != null && detail.Houdu != "△")
            {
                this.subReportHD.Visible       = true;
                subHD._PCPGOnlineCheckDetailId = detail.PCFirstOnlineCheckDetailId;
            }
            else
            {
                lbl_TitleHD.Visible      = false;
                lbl_TitleHD.Text         = "";
                this.subReportHD.Visible = false;
            }
        }
コード例 #12
0
ファイル: RO.cs プロジェクト: daobataotie/Mobe
        private void subreportChongji_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            ROImpactCheck subChongji = this.subreportChongji.ReportSource as ROImpactCheck;

            Model.PCFirstOnlineCheckDetail detail = this.GetCurrentRow() as Model.PCFirstOnlineCheckDetail;
            if (detail != null && detail.Chongji != "△")
            {
                this.subreportChongji.Visible         = true;
                subChongji.PCFirstOnlineCheckDetailId = detail.PCFirstOnlineCheckDetailId;
            }
            else
            {
                lbl_TitleCJ.Visible           = false;
                lbl_TitleCJ.Text              = "";
                this.subreportChongji.Visible = false;
            }
        }
コード例 #13
0
ファイル: RO.cs プロジェクト: daobataotie/EDERP
        private void subreportChongji_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            ROImpactCheck subChongji = this.subreportChongji.ReportSource as ROImpactCheck;

            Model.PCFirstOnlineCheckDetail detail = this.GetCurrentRow() as Model.PCFirstOnlineCheckDetail;
            if (detail != null && detail.Chongji != "△")
            {
                this.subreportChongji.Visible = true;
                subChongji.PCImpactCheck      = new Book.BL.PCImpactCheckManager().PFCGetFirst(detail.PCFirstOnlineCheckDetailId);

                //if (subChongji.PCImpactCheck == null)
                //{
                //    this.subreportChongji.HeightF = 0;
                //    this.subreportChongji.ReportSource = null;
                //    this.subreportChongji.Visible = false;
                //}
            }
            else
            {
                this.subreportChongji.Visible = false;
            }
        }
コード例 #14
0
 public void Update(Model.PCFirstOnlineCheckDetail e)
 {
     this.Update <Model.PCFirstOnlineCheckDetail>(e);
 }
コード例 #15
0
 public void Insert(Model.PCFirstOnlineCheckDetail e)
 {
     this.Insert <Model.PCFirstOnlineCheckDetail>(e);
 }