本文整理汇总了C#中FormViewInsertEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# FormViewInsertEventArgs类的具体用法?C# FormViewInsertEventArgs怎么用?C# FormViewInsertEventArgs使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
FormViewInsertEventArgs类属于命名空间,在下文中一共展示了FormViewInsertEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FormView_SOFile_ItemInserting
protected void FormView_SOFile_ItemInserting(object sender, FormViewInsertEventArgs e)
{
TextBox txt1 = (TextBox)FormView_SOFile.FindControl("CircularsTextBox");
TextBox txt2 = (TextBox)FormView_SOFile.FindControl("DateOfCircularsTextBox");
TextBox txt3= (TextBox)FormView_SOFile.FindControl("CircularsTextBox");
TextBox txt4 = (TextBox)FormView_SOFile.FindControl("SubjectTextBox");
TextBox txt5 = (TextBox)FormView_SOFile.FindControl("PageNoTextBox");
DateTime curr_date = DateTime.Now;
if (txt1.Text=="")
{
e.Values["Circulars"] = 0;
}
if (txt2.Text == "")
{
e.Values["DateOfCirculars"] = curr_date;
}
if (txt4.Text == "")
{
e.Values["Subject"] = "";
}
if (txt5.Text == "")
{
e.Values["PageNo"] = 0;
}
DropDownList DropDownList1 = FormView_SOFile.FindControl("DropDownList1") as DropDownList;
e.Values["Department"] = DropDownList1.SelectedValue;
}
示例2: FormView_Diary_ItemInserting
protected void FormView_Diary_ItemInserting(object sender, FormViewInsertEventArgs e)
{
ListBox ListBox_office = FormView_Diary.FindControl("ListBox_officename") as ListBox;
int[] selectedIndices = ListBox_office.GetSelectedIndices();
e.Values["NoOfOfficeinspected"] = selectedIndices.Length;
ViewState["SelectedItems"] = selectedIndices;
}
示例3: formView_ItemInserting
protected void formView_ItemInserting(object sender, FormViewInsertEventArgs e)
{
if (e.Values["StrategyID"].ToString() == "None")
e.Values["Strategy"] = null;
if (e.Values["Category"].ToString() == "None")
e.Values["Category"] = null;
}
示例4: FormView_Tarankit_ItemInserting
protected void FormView_Tarankit_ItemInserting(object sender, FormViewInsertEventArgs e)
{
RadioButtonList Radio_Tarankit = FormView_Tarankit.FindControl("Radio_tarankit") as RadioButtonList;
e.Values["Tarankit_Atarnkit"] = Radio_Tarankit.SelectedValue;
DropDownList Drop_mlaname = FormView_Tarankit.FindControl("Drop_mlaname") as DropDownList;
e.Values["mlaName"] = Drop_mlaname.SelectedValue;
}
示例5: FormView_OutWardRegister_ItemInserting
protected void FormView_OutWardRegister_ItemInserting(object sender, FormViewInsertEventArgs e)
{
DropDownList Dropdown_CopyTo = FormView_OutWardRegister.FindControl("DropDownList_CopyTo") as DropDownList;
e.Values["Copy_To"] = Dropdown_CopyTo.SelectedValue;
ListBox ListBox_Office = FormView_OutWardRegister.FindControl("ListBox_Office_CopyTo") as ListBox;
e.Values["Office_Copy_To"] = ListBox_Office.SelectedValue;
}
示例6: FormView_BookForm_ItemInserting
protected void FormView_BookForm_ItemInserting(object sender, FormViewInsertEventArgs e)
{
DropDownList DropDown_EmployeeName = FormView_BookFormRegister.FindControl("DropDownList_EmployeeName") as DropDownList;
e.Values["Emp_Name"] = DropDown_EmployeeName.SelectedValue;
DropDownList DropDownList1 = FormView_BookFormRegister.FindControl("DropDownListDepartment") as DropDownList;
e.Values["Dept_name"] = DropDownList1.SelectedValue;
}
示例7: FormView_Inquiry_ItemInserting
protected void FormView_Inquiry_ItemInserting(object sender, FormViewInsertEventArgs e)
{
DropDownList DropDownEmployeeName = FormView_Inquiry.FindControl("Name_Of_EmployeeDropDown") as DropDownList;
e.Values["Name_Of_Employee"] = DropDownEmployeeName.SelectedValue;
DropDownList DropDownDesignation = FormView_Inquiry.FindControl("Drop_employeedesignation") as DropDownList;
e.Values["Designation_Of_Employee"] = DropDownDesignation.SelectedValue;
}
示例8: FormView_Vigilance_ItemInserting
protected void FormView_Vigilance_ItemInserting(object sender, FormViewInsertEventArgs e)
{
DropDownList DropDownList1 = FormView_Vigilance.FindControl("designation") as DropDownList;
e.Values["emp_desig"] = DropDownList1.SelectedValue;
DropDownList DropDown_employeename = FormView_Vigilance.FindControl("DropDownList_employeename") as DropDownList;
e.Values["empname"] = DropDown_employeename.SelectedValue;
}
示例9: FormView_SunavniRegister_ItemInserting
protected void FormView_SunavniRegister_ItemInserting(object sender, FormViewInsertEventArgs e)
{
DropDownList DropDownList_AppealNo = FormView_SunavniRegister.FindControl("DropDownList_AppealNo") as DropDownList;
e.Values["AppealNo"] = DropDownList_AppealNo.SelectedValue;
DropDownList DropDownList_Versus = FormView_SunavniRegister.FindControl("DropDownList_EmployeeName") as DropDownList;
e.Values["Versus"] = DropDownList_Versus.SelectedValue;
}
示例10: FormView_GrantRegister_ItemInserting
protected void FormView_GrantRegister_ItemInserting(object sender, FormViewInsertEventArgs e)
{
DropDownList DropDownList1 = FormView_GrantRegister.FindControl("DropDownListBillNo") as DropDownList;
if (DropDownList1 != null)
{
e.Values["BillNo"] = DropDownList1.SelectedValue;
}
}
示例11: FormView_Marriagecertificate_ItemInserting
protected void FormView_Marriagecertificate_ItemInserting(object sender, FormViewInsertEventArgs e)
{
DropDownList DropDown_Taluka = FormView_Marriagecertificate.FindControl("DropDownList_Taluka") as DropDownList;
e.Values["Taluka"] = DropDown_Taluka.SelectedValue;
DropDownList DropDown_District = FormView_Marriagecertificate.FindControl("DropDownList_District") as DropDownList;
e.Values["District"] = DropDown_District.SelectedValue;
}
示例12: FormView1_ItemInserting
protected void FormView1_ItemInserting(object sender, FormViewInsertEventArgs e)
{
if (au != null)
{
e.Values.Add("ucrea", au.UserName);
}
//e.Values.Add("chkPersonaJuridica", true);
}
示例13: frmFollowupAction_ItemInserting
protected void frmFollowupAction_ItemInserting(object sender, FormViewInsertEventArgs e)
{
e.Values["CompanyId"] = Company.CompanyId;
if (String.IsNullOrEmpty(e.Values["Probability"].ToString()))
e.Values["Probability"] = Convert.ToDecimal("0");
else
e.Values["Probability"] = Convert.ToDecimal(e.Values["Probability"]);
}
示例14: FormView_Diary_ItemInserting
protected void FormView_Diary_ItemInserting(object sender, FormViewInsertEventArgs e)
{
DropDownList DropDown_DaysDuringMonth = FormView_Diary.FindControl("DropDownList_DaysDuringMonth") as DropDownList;
e.Values["Daysduringmonth"] =Convert.ToInt32(DropDown_DaysDuringMonth.SelectedValue);
ListBox ListBox_office = FormView_Diary.FindControl("ListBox_officename") as ListBox;
int[] selectedIndices = ListBox_office.GetSelectedIndices();
e.Values["NoOfOfficeinspected"] = selectedIndices.Length;
ViewState["SelectedItems"] = selectedIndices;
}
示例15: AddInsertParameterValues
private void AddInsertParameterValues(FormViewInsertEventArgs e)
{
ISNet.WebUI.WebCombo.WebCombo cityStateZipWebCombo =
fvClient.FindControl("wcCityStateZip") as ISNet.WebUI.WebCombo.WebCombo;
e.Values.Add("CityStateZipGuid", cityStateZipWebCombo.SelectedRow.Value);
ISNet.WebUI.WebCombo.WebCombo paymentInfoWebCombo =
fvClient.FindControl("wcPaymentInfo") as ISNet.WebUI.WebCombo.WebCombo;
e.Values.Add("PaymentInfoGuid", paymentInfoWebCombo.SelectedRow.Value);
}