//////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////// //database insert methods public case_intake case_intake_insert() { case_intake.applic_end_date_time = Convert.ToDateTime(9 / 9 / 9);//null case_intake.applic_start_date_time = DateTime.Now; case_intake.circum_emergency_event = "N/A"; case_intake.circum_help_request_memo = "N/A"; case_intake.circum_income_stolen = "N/A"; case_intake.circum_memo = "Warehouse to warehouse order"; case_intake.circum_no_income = "N/A"; case_intake.circum_not_enough_income = "N/A"; case_intake.agency_id = 0;//null case_intake.call_center_id = Convert.ToInt32(DDL_Call_Center.SelectedValue); case_intake = case_intake.Insert(case_intake); return(case_intake); }
public case_intake case_intake_insert() { case_intake.applic_end_date_time = Convert.ToDateTime("1 / 1 / 1900"); case_intake.applic_start_date_time = DateTime.Now; case_intake.circum_emergency_event = "YES"; case_intake.circum_help_request_memo = "MISSING PERSON"; case_intake.circum_income_stolen = "NO"; case_intake.circum_memo = "NO"; case_intake.circum_no_income = "NO"; case_intake.circum_not_enough_income = "NO"; case_intake.agency_id = 0; case_intake.call_center_id = Convert.ToInt32(Insert_DDL_Call_Center.SelectedValue); case_intake = case_intake.Insert(case_intake); //GridView1.DataBind(); return(case_intake); }
public case_intake case_intake_insert() { case_intake.applic_end_date_time = Convert.ToDateTime(Insert_applic_end_date_time_txt.Text); case_intake.applic_start_date_time = Convert.ToDateTime(Insert_applic_start_date_time_txt.Text); case_intake.circum_emergency_event = Insert_circum_emergency_event_txt.Text; case_intake.circum_help_request_memo = Insert_circum_help_request_memo_txt.Text; case_intake.circum_income_stolen = Insert_circum_income_stolen_txt.Text; case_intake.circum_memo = Insert_circum_memo_txt.Text; case_intake.circum_no_income = Insert_circum_no_income_txt.Text; case_intake.circum_not_enough_income = Insert_circum_not_enough_income_txt.Text; case_intake.agency_id = Convert.ToInt32(Insert_agency_id_txt.Text); case_intake.call_center_id = Convert.ToInt32(Insert_call_center_id_txt.Text); case_intake = case_intake.Insert(case_intake); Insert_case_intake_GridView.DataBind(); Update_case_intake_GridView.DataBind(); Delete_case_intake_GridView.DataBind(); return(case_intake); }