当前位置: 首页>>代码示例>>C#>>正文


C# Report.CheckUniqueSSN方法代码示例

本文整理汇总了C#中Attendance.BAL.Report.CheckUniqueSSN方法的典型用法代码示例。如果您正苦于以下问题:C# Report.CheckUniqueSSN方法的具体用法?C# Report.CheckUniqueSSN怎么用?C# Report.CheckUniqueSSN使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Attendance.BAL.Report的用法示例。


在下文中一共展示了Report.CheckUniqueSSN方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: btnAdd_Click


//.........这里部分代码省略.........
                    objContactInfo.Zip3 = "0" + txtCn3Zip.Text.Trim();
                }
                else
                {
                    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 = "";
开发者ID:kamaelyoung,项目名称:HR.bizstrides,代码行数:66,代码来源:AdminUserManagement.aspx.cs


注:本文中的Attendance.BAL.Report.CheckUniqueSSN方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。