Example #1
0
        private void btnUpdateDetail_Click(object sender, EventArgs e)
        {
            using (AnzContextsDataContext dbc = new AnzContextsDataContext())
            {
                dbc.DeferredLoadingEnabled = false;
                Int32 intDID = Convert.ToInt32(txtDID.Text);

                var obj = (from t0 in dbc.Customer_MappingDetails
                           where t0.DID == intDID
                           select t0).FirstOrDefault();
                obj.No           = Convert.ToInt32(txtNo.Text);
                obj.FieldName    = txtFieldName.Text;
                obj.ExampleValue = txtExampleValue.Text;
                obj.CM_Require   = chkCM_Require.Checked;
                obj.Link_Value   = txtLinkValue.Text;
                obj.Priority1    = txtPriority1.Text;
                obj.Priority2    = txtPriority2.Text;
                obj.Priority3    = txtPriority3.Text;
                obj.UPDATE_DATE  = DateTime.Now;

                dbc.SubmitChanges();
                popupDetail.Hide();
                UpdateGrid();
            }
        }
Example #2
0
        private void btnSaveHead_Click(object sender, EventArgs e)
        {
            using (AnzContextsDataContext dbc = new AnzContextsDataContext())
            {
                dbc.DeferredLoadingEnabled = false;
                Int32 intHID = Convert.ToInt32(searchLookUpEditReportName.EditValue);

                Customer_MappingHeader obj = new Customer_MappingHeader();
                obj.ReportCode  = txtReportCode.Text;
                obj.ReportName  = txtReportName.Text;
                obj.UPDATE_DATE = DateTime.Now;
                dbc.Customer_MappingHeaders.InsertOnSubmit(obj);
                dbc.SubmitChanges();
                popupHeader.Hide();
            }
        }
Example #3
0
        private void btnUpdateHead_Click(object sender, EventArgs e)
        {
            using (AnzContextsDataContext dbc = new AnzContextsDataContext())
            {
                dbc.DeferredLoadingEnabled = false;
                Int32 intHID = Convert.ToInt32(searchLookUpEditReportName.EditValue);

                var obj = (from t0 in dbc.Customer_MappingHeaders
                           where t0.HID == intHID
                           select t0).FirstOrDefault();
                obj.ReportCode = txtReportCode.Text;
                obj.ReportName = txtReportName.Text;
                dbc.SubmitChanges();
                popupHeader.Hide();
            }
        }
Example #4
0
        private void btnSaveDetail_Click(object sender, EventArgs e)
        {
            using (AnzContextsDataContext dbc = new AnzContextsDataContext())
            {
                dbc.DeferredLoadingEnabled = false;
                Customer_MappingDetail obj = new Customer_MappingDetail();

                obj.No           = Convert.ToInt32(txtNo.Text);
                obj.HID          = Convert.ToInt32(txtHID.Text);
                obj.FieldName    = txtFieldName.Text;
                obj.ExampleValue = txtExampleValue.Text;
                obj.CM_Require   = chkCM_Require.Checked;
                obj.Link_Value   = txtLinkValue.Text;
                obj.Priority1    = txtPriority1.Text;
                obj.Priority2    = txtPriority2.Text;
                obj.Priority3    = txtPriority3.Text;
                obj.UPDATE_DATE  = DateTime.Now;
                dbc.Customer_MappingDetails.InsertOnSubmit(obj);
                dbc.SubmitChanges();
                popupDetail.Hide();
                UpdateGrid();
            }
        }