コード例 #1
0
        //保存按钮操作
        private void saveButton_Click(object sender, EventArgs e)
        {
            HYPDM.Entities.PDM_PRODUCT_PRORECORD temp = new HYPDM.Entities.PDM_PRODUCT_PRORECORD();

            temp.PRORECORDID      = Convert.ToInt64(this.ProRecordId.Text);
            temp.PRUDUCTID        = this.ProductID.Text;
            temp.STARTTIME        = this.startTime.Value;
            temp.ENDTIME          = this.endTime.Value;
            temp.PRODUCTNUM       = Convert.ToInt32(this.ProductNum.Text);
            temp.WORKSHOP         = this.workShop.Text;
            temp.WORKSHOPDIRECTOR = this.wsDirector.Text;
            temp.Save();
            MessageBox.Show("保存成功");
            this.record       = temp;
            this.DialogResult = DialogResult.OK;
        }
コード例 #2
0
        //保存按钮操作
        private void saveButton_Click(object sender, EventArgs e)
        {
            HYPDM.Entities.PDM_PRODUCT_PRORECORD temp = new HYPDM.Entities.PDM_PRODUCT_PRORECORD();

            temp.PRORECORDID = Convert.ToInt64(this.ProRecordId.Text);
            temp.PRUDUCTID = this.ProductID.Text;
            temp.STARTTIME = this.startTime.Value;
            temp.ENDTIME = this.endTime.Value;
            temp.PRODUCTNUM = Convert.ToInt32(this.ProductNum.Text);
            temp.WORKSHOP = this.workShop.Text;
            temp.WORKSHOPDIRECTOR = this.wsDirector.Text;
            temp.Save();
            MessageBox.Show("保存成功");
            this.record = temp;
            this.DialogResult = DialogResult.OK;
        }