本文整理汇总了C#中Attendance.BAL.Report.AddUser方法的典型用法代码示例。如果您正苦于以下问题:C# Report.AddUser方法的具体用法?C# Report.AddUser怎么用?C# Report.AddUser使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Attendance.BAL.Report
的用法示例。
在下文中一共展示了Report.AddUser方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: btnAdd_Click
//.........这里部分代码省略.........
{
objContactInfo.Zip3 = txtCn3Zip.Text.Trim();
}
string LocationName = ddlLocation.SelectedItem.Text.ToString().Trim();
if (LocationName.Trim().ToUpper() == "INBH" || LocationName.Trim().ToUpper() == "INDG")
{
objInfo.SSN = "";
}
else
{
objInfo.SSN = txtEmpSSN.Text.Trim();
}
objInfo.Address1 = GeneralFunction.ToProperNotes(txtEmpAddress1.Text.ToString().Trim());
objInfo.Address2 = GeneralFunction.ToProperNotes(txtEmpAddress2.Text.ToString().Trim());
objInfo.StateID = Convert.ToInt32(ddlEmpState.SelectedItem.Value);
if (txtEmpZip.Text != "" && txtEmpZip.Text.Trim().Length == 4)
{
objInfo.Zip = "0" + txtEmpZip.Text.Trim();
}
else
{
objInfo.Zip = txtEmpZip.Text.Trim();
}
objInfo.DriverLicense = txtEmpDriveLicense.Text.Trim();
objInfo.EmpTypeID = Convert.ToInt32(ddlEmpType.SelectedItem.Value);
if (objInfo.SSN != "")
{
if (obj.CheckUniqueSSN(objInfo.SSN.Trim()))
{
bool bnew = obj.AddUser(objInfo, objContactInfo, UserID, LocationName, PhotoLink);
if (bnew)
{
txtAddFirstName.Text = "";
txtAddLastName.Text = "";
txtBusinessEmail.Text = "";
txtDateOfBirth.Text = "";
txtDesignation.Text = "";
txtEmpAddress1.Text = "";
txtEmpAddress2.Text = "";
txtEmpDriveLicense.Text = "";
txtEmpMobile.Text = "";
txtEmpPhone.Text = "";
txtEmpSSN.Text = "";
txtEmpZip.Text = "";
txtCn1Address1.Text = "";
txtCn1Address2.Text = "";
txtCn1Email.Text = "";
txtCn1Name.Text = "";
txtCn1Phone.Text = "";
txtCn1Relation.Text = "";
txtCn2Address1.Text = "";
txtCn2Address2.Text = "";
txtCn2Email.Text = "";
txtCn2Name.Text = "";
txtCn2Phone.Text = "";
txtCn2Relation.Text = "";
txtCn3Address1.Text = "";
txtCn3Address2.Text = "";
txtCn3Email.Text = "";