Ejemplo n.º 1
0
    private string CreateImage(DataRow row, bool isReturn)
    {
        string userID = "";

        if (Session[Config.Curren_User] != null)
        {
            ACCTRUE.WMSBLL.Model.User user = (ACCTRUE.WMSBLL.Model.User)Session[Config.Curren_User];
            userID = user.UserID;
        }
        DataSet dataset = new DataSet();

        dataset.ReadXml(Server.MapPath("PrintCodeTemplet/HWCodeTeplet.xml"));
        DataTable         table      = dataset.Tables[0];
        BarCode128Manager codeManage = new BarCode128Manager(table);

        System.Drawing.Image imgae = codeManage.CreateImage(row);
        string sfilename           = Guid.NewGuid().ToString() + ".png";
        string sfilepath           = CreateDirectory(userID) + "/" + sfilename;

        imgae.Save(sfilepath, System.Drawing.Imaging.ImageFormat.Png);
        string        strDate  = DateTime.Now.ToShortDateString();
        string        ImageUrl = "TempImages/" + userID + "/" + strDate + "/" + sfilename;
        StringBuilder sb       = new StringBuilder();

        sb.Append(@"<img src=""" + ImageUrl + @""" width=100% height=100% />");
        if (isReturn == true)
        {
            sb.Append(@"<br clear=all style='page-break-before:always'>");
        }
        return(sb.ToString());
    }
Ejemplo n.º 2
0
 /// <summary>
 /// 挂失IC卡
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void btnGS_Click(object sender, ImageClickEventArgs e)
 {
     try
     {
         if (string.IsNullOrEmpty(this.hidCValue.Value))
         {
             this.PrintfError("没有选择要修改的纪录!");
             return;
         }
         string icflag = ICParam.GetFlag(this.hidCValue.Value);
         if (icflag == "挂失")
         {
             this.PrintfError("此卡是挂失状态,不能重复挂失!");
             return;
         }
         else
         {
             ACCTRUE.WMSBLL.Model.User user = (ACCTRUE.WMSBLL.Model.User)(Session[Config.Curren_User]);
             ICParam parm = new ICParam(this.hidCValue.Value, this.hidCValue.Value, "", "", this.txtKHName.Text, "挂失", this.txtCPH.Text, "", DateTime.Now, user.UserID, DateTime.Now, "");
             parm.Update(this.hidCValue.Value, "挂失", user.UserID, DateTime.Now);
             InitICPassHid();
             BindICByEnter();
         }
     }
     catch (Exception ex)
     {
         String strEx = ex.Message;
         this.PrintfError("数据访问错误,请重试!");
         return;
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 恢复IC卡
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void btnHF_Click(object sender, ImageClickEventArgs e)
 {
     try
     {
         if (string.IsNullOrEmpty(this.hidCValue.Value))
         {
             this.PrintfError("没有选择要修改的纪录!");
             return;
         }
         string icflag = ICParam.GetFlag(this.hidCValue.Value);
         if (icflag == "使用")
         {
             this.PrintfError("此卡是使用状态,不必恢复!");
             return;
         }
         else
         {
             ACCTRUE.WMSBLL.Model.User user = (ACCTRUE.WMSBLL.Model.User)(Session[Config.Curren_User]);
             ICParam parm = new ICParam();
             parm.Update(this.hidCValue.Value, "使用", DBNull.Value.ToString(), DateTime.MinValue);
             InitICPassHid();
             BindICByEnter();
         }
     }
     catch (Exception ex)
     {
         String strEx = ex.Message;
         this.PrintfError("数据访问错误,请重试!");
         return;
     }
 }
Ejemplo n.º 4
0
    /// <summary>
    /// 退卡
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void btnTK_Click(object sender, ImageClickEventArgs e)
    {
        try
        {
            if (string.IsNullOrEmpty(this.hidCValue.Value))
            {
                this.PrintfError("没有选择要修改的纪录!");
                this.txtICID.Text    = "";
                this.txtKHName.Text  = "";
                this.hidCValue.Value = "";
                return;
            }

            ACCTRUE.WMSBLL.Model.User user = (ACCTRUE.WMSBLL.Model.User)(Session[Config.Curren_User]);
            ICParam parm = new ICParam(this.hidCValue.Value, "", "", "", "", "", "", "", DateTime.Now, "", DateTime.Now, "");
            parm.Delete();
            this.txtICID.Text    = "";
            this.txtKHName.Text  = "";
            this.hidCValue.Value = "";
            //BindICParam();
            BindICByEnter();
        }
        catch (Exception ex)
        {
            String strEx = ex.Message;
            this.PrintfError("数据访问错误,请重试!");
            return;
        }
    }
Ejemplo n.º 5
0
    //初始化设置列表控件
    public void InitSetListControl(GridView gView, int pageNbr)
    {
        hidPageNbr.Value = pageNbr.ToString();
        int count = gView.Columns.Count;

        this.checkAll.Checked = true;
        m_pnlInfo.Controls.Clear();
        for (int i = 0; i < count; i++)
        {
            if (gView.Columns[i].HeaderText == "查看明细" || gView.Columns[i].HeaderText == "选择打印" || gView.Columns[i].HeaderText == "选择")
            {
                continue;
            }
            CheckBox box = new CheckBox();
            box.ID      = "" + i;
            box.Checked = true;
            box.Text    = gView.Columns[i].HeaderText;
            m_pnlInfo.Controls.Add(box);
        }
        if (Session[Config.Curren_User] == null)
        {
            return;
        }
        ACCTRUE.WMSBLL.Model.User user = (ACCTRUE.WMSBLL.Model.User)Session[Config.Curren_User];
        string userId = user.UserID;

        initCheckList(userId, pageNbr);
        SetGridViewDisplay(gView);
    }
Ejemplo n.º 6
0
    private void BindDrop()
    {
        try
        {
            DataSet ds = Store.GetList();
            ACCTRUE.WMSBLL.Model.User user = null;
            if (Session[Config.Curren_User] != null)
            {
                user = (ACCTRUE.WMSBLL.Model.User)Session[Config.Curren_User];
            }
            if (ds != null)
            {
                this.DropDownList1.DataSource     = ds;
                this.DropDownList1.DataTextField  = "CKCKName";
                this.DropDownList1.ToolTip        = "请选择对应仓库";
                this.DropDownList1.DataValueField = "CKID";
                this.DropDownList1.DataBind();
            }
            if (user != null)
            {
                this.DropDownList1.SelectedValue = user.CK.Trim();
            }

            this.DropDownList1.Items.Insert(0, new ListItem("--全部仓库--", ""));
        }
        catch
        {
            this.PrintfError("数据错");
            return;
        }
    }
Ejemplo n.º 7
0
    private void InitMenu()
    {
        if (Session[Config.Curren_User] != null)
        {
            ACCTRUE.WMSBLL.Model.User user = (ACCTRUE.WMSBLL.Model.User)Session[Config.Curren_User];
            this.TreeView1.ExpandImageUrl        = "../../Images/tree/img-folder-open.gif";
            this.TreeView1.NoExpandImageUrl      = "../../Images/tree/img-folder.gif";
            this.TreeView1.NodeStyle.NodeSpacing = 2;

            TreeNode node     = new TreeNode("统计报表");
            TreeNode sonNode1 = new TreeNode("发运清单");
            sonNode1.Target      = "RightFrame";
            sonNode1.NavigateUrl = "FYListView.aspx";
            node.ChildNodes.Add(sonNode1);

            TreeNode sonNode2 = new TreeNode("货场日报表");
            sonNode2.Target      = "RightFrame";
            sonNode2.NavigateUrl = "HCDayReport.aspx";
            node.ChildNodes.Add(sonNode2);

            TreeNode sonNode3 = new TreeNode("库存明细表");
            sonNode3.Target      = "RightFrame";
            sonNode3.NavigateUrl = "KCList.aspx";
            node.ChildNodes.Add(sonNode3);

            TreeNode sonNode4 = new TreeNode("高线月盘存表");
            sonNode4.Target      = "RightFrame";
            sonNode4.NavigateUrl = "GXMonthReport.aspx";
            node.ChildNodes.Add(sonNode4);

            TreeNode sonNode5 = new TreeNode("月盘存明细表");
            sonNode5.Target      = "RightFrame";
            sonNode5.NavigateUrl = "MonthPC.aspx";
            node.ChildNodes.Add(sonNode5);

            TreeNode sonNode6 = new TreeNode("工作量统计");
            sonNode6.Target      = "RightFrame";
            sonNode6.NavigateUrl = "WorkLoadCount.aspx";
            node.ChildNodes.Add(sonNode6);

            TreeNode sonNode7 = new TreeNode("深加工批次查询");
            sonNode7.Target      = "RightFrame";
            sonNode7.NavigateUrl = "SXPCSearch.aspx";
            node.ChildNodes.Add(sonNode7);

            TreeNode sonNode8 = new TreeNode("产量汇总数据查询");
            sonNode8.Target      = "RightFrame";
            sonNode8.NavigateUrl = "CLHZSearch.aspx";
            node.ChildNodes.Add(sonNode8);

            TreeNode sonNode9 = new TreeNode("产量明细数据查询");
            sonNode9.Target      = "RightFrame";
            sonNode9.NavigateUrl = "CLMXSearch.aspx";
            node.ChildNodes.Add(sonNode9);

            this.TreeView1.Nodes.Add(node);
        }
    }
Ejemplo n.º 8
0
    //初始化checkBox选择框
    private void initCheckList(string userId, int pageNbr)
    {
        string values = "";
        string userID = "";

        if (Session[Config.Curren_User] != null)
        {
            ACCTRUE.WMSBLL.Model.User cUser = (ACCTRUE.WMSBLL.Model.User)Session[Config.Curren_User];
            userID = cUser.UserID;
        }
        if (string.IsNullOrEmpty(this.hidShowList.Value))
        {
            ListViewModel mode = ListViewModel.GetListViewModelModel(userID, pageNbr);
            if (mode == null)
            {
                return;
            }
            this.drpHeadFont.SelectedValue = mode.HeadFont.ToString();
            this.drpListFont.SelectedValue = mode.ListFont.ToString();
            values = mode.ShowList;
            this.hidShowList.Value = mode.ShowList;
        }
        values           = this.hidShowList.Value;
        checkAll.Checked = false;
        int count = 0;

        foreach (Control col in m_pnlInfo.Controls)
        {
            ((CheckBox)col).Checked = false;
            try
            {
                if (values.Trim() != "")
                {
                    string[] valuarray = values.Split(',');
                    foreach (string val in valuarray)
                    {
                        if (val == col.ID)
                        {
                            ((CheckBox)m_pnlInfo.FindControl(val)).Checked = true;
                            count++;
                            break;
                        }
                    }
                }
            }
            catch
            {
                continue;
            }
        }
        if (count == m_pnlInfo.Controls.Count)
        {
            checkAll.Checked = true;//如果全部选中则全选
        }
    }
Ejemplo n.º 9
0
    private string GetUserId()
    {
        string userID = "";

        if (Session[Config.Curren_User] != null)
        {
            ACCTRUE.WMSBLL.Model.User user = (ACCTRUE.WMSBLL.Model.User)Session[Config.Curren_User];
            if (user != null)
            {
                userID = user.UserID;
            }
        }
        return(userID);
    }
Ejemplo n.º 10
0
 protected void Page_Load(object sender, EventArgs e)
 {
     // 在此处放置用户代码以初始化页面
     if (!this.IsPostBack)
     {
         if (Session[Config.Curren_User] == null)
         {
             return;
         }
         ACCTRUE.WMSBLL.Model.User user = (ACCTRUE.WMSBLL.Model.User)Session[Config.Curren_User];
         string userId = user.UserID;
         initCheckList(userId, m_pageNbr);
         SetGridViewDisplay(grdView1);
     }
 }
Ejemplo n.º 11
0
 private string CreateDirectory(string userID)
 {
     if (Session[Config.Curren_User] != null)
     {
         ACCTRUE.WMSBLL.Model.User user = (ACCTRUE.WMSBLL.Model.User)Session[Config.Curren_User];
         string strDate       = DateTime.Now.ToShortDateString();
         string userDirectory = Server.MapPath("TempImages\\" + userID + "\\" + strDate);
         if (!Directory.Exists(userDirectory))
         {
             Directory.CreateDirectory(userDirectory);
         }
         return(userDirectory);
     }
     return("");
 }
Ejemplo n.º 12
0
    private void InitMenu()
    {
        if (Session[Config.Curren_User] != null)
        {
            ACCTRUE.WMSBLL.Model.User user = (ACCTRUE.WMSBLL.Model.User)Session[Config.Curren_User];
            this.TreeView1.ExpandImageUrl        = "../../Images/tree/img-folder-open.gif";
            this.TreeView1.NoExpandImageUrl      = "../../Images/tree/img-folder.gif";
            this.TreeView1.NodeStyle.NodeSpacing = 2;

            TreeNode node = new TreeNode("盘点管理");

            if (this.CUSER.USERFUNCTION.Q_PDD)
            {
                TreeNode sonNode1 = new TreeNode("盘点粗盘单");
                sonNode1.Target      = "RightFrame";
                sonNode1.NavigateUrl = "CuPan.aspx";
                node.ChildNodes.Add(sonNode1);

                TreeNode sonNode2 = new TreeNode("盘点抽盘单");
                sonNode2.Target      = "RightFrame";
                sonNode2.NavigateUrl = "ChouPan.aspx";
                node.ChildNodes.Add(sonNode2);
            }

            if (this.CUSER.USERFUNCTION.UP_PDD)
            {
                TreeNode sonNode3 = new TreeNode("盘点数据上传");
                sonNode3.Target      = "RightFrame";
                sonNode3.NavigateUrl = "PDData.aspx";
                node.ChildNodes.Add(sonNode3);
            }
            if (this.CUSER.USERFUNCTION.Q_PDD)
            {
                TreeNode sonNode4 = new TreeNode("自由盘点");
                sonNode4.Target      = "RightFrame";
                sonNode4.NavigateUrl = "ZYPDData.aspx";
                node.ChildNodes.Add(sonNode4);
            }
            if (this.CUSER.USERFUNCTION.Q_PDD)
            {
                TreeNode sonNode5 = new TreeNode("盘点参考");
                sonNode5.Target      = "RightFrame";
                sonNode5.NavigateUrl = "PDCKSearch.aspx";
                node.ChildNodes.Add(sonNode5);
            }
            this.TreeView1.Nodes.Add(node);
        }
    }
Ejemplo n.º 13
0
    protected void btn_camer_Click(object sender, ImageClickEventArgs e)
    {
        //string userid = Config.Curuserid;
        ACCTRUE.WMSBLL.Model.User user = (ACCTRUE.WMSBLL.Model.User)(Session[Config.Curren_User]);
        string fydh = hidFYDHitem.Value.Trim();
        string v    = QuCheck.sendcmd(fydh, user.UserID);

        if (v != "")
        {
            PrintfError("拍照失败!" + v);
            return;
        }
        else
        {
            PrintfError("拍照成功!");
        }
    }
Ejemplo n.º 14
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(Request["TYPE"]))
     {
         string strType = Request["Type"];
         if (strType == "LOGINOUT")
         {
             if (Session[Config.Curren_User] != null)
             {
                 ACCTRUE.WMSBLL.Model.User c_User = (ACCTRUE.WMSBLL.Model.User)Session[Config.Curren_User];
                 c_User.SetUserLoginOut();
                 FormsAuthentication.SignOut();
                 Session.Abandon();
             }
         }
     }
 }
Ejemplo n.º 15
0
 protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
 {
     try
     {
         SetGridViewDisplay(grdView1);
         saveModel();
         if (Session[Config.Curren_User] == null)
         {
             return;
         }
         ACCTRUE.WMSBLL.Model.User user = (ACCTRUE.WMSBLL.Model.User)Session[Config.Curren_User];
         string userId = user.UserID;
         initCheckList(userId, m_pageNbr);
     }
     catch
     {
         this.PrintfError("数据访问错误,请重试!");
     }
 }
Ejemplo n.º 16
0
 protected void btnOK_Click(object sender, ImageClickEventArgs e)
 {
     try
     {
         InDoorParam indoor             = new InDoorParam();
         ACCTRUE.WMSBLL.Model.User user = (ACCTRUE.WMSBLL.Model.User)(Session[Config.Curren_User]);
         if (indoor.Update2(Request["FYDH"], 3, Config.Curuserid, DateTime.Now))
         {
             this.WriteClientJava("window.alert('该发运单现在可以出门了!');window.close();");
             indoor.setICIDoutdoor(Request["ICID"], Request["FYDH"]);
         }
     }
     catch (Exception ex)
     {
         String strEx = ex.Message;
         this.PrintfError("第三种情况出现错误,请重试!");
         return;
     }
 }
Ejemplo n.º 17
0
    protected void btnSCXH_Click(object sender, ImageClickEventArgs e)
    {
        string zcsl = txtCXH.Text.Trim();

        if (string.IsNullOrEmpty(txtCXH.Text.Trim()))
        {
            this.PrintfError("请输入装车数量!");
            return;
        }
        try
        {
            int v = int.Parse(zcsl);
        }
        catch (System.Exception ex)
        {
            this.PrintfError("装车数量必须为整数!");
            return;
        }
        string fydh   = hidCValue.Value.Trim();
        string result = QuCheck.checkfydOutqr(fydh);

        if (result != "")
        {
            this.PrintfError(result);
            return;
        }
        ACCTRUE.WMSBLL.Model.User user = (ACCTRUE.WMSBLL.Model.User)(Session[Config.Curren_User]);
        result = QuCheck.zhqrdoor(fydh, user.UserID, int.Parse(zcsl));
        if (result != "")
        {
            this.PrintfError(result);
            return;
        }
        else
        {
            PrintfError("操作成功!");
            //BindGridView();
        }
    }
Ejemplo n.º 18
0
    /*
     * 保存自己的模板
     */
    public void saveModel()
    {
        string userId = "";

        if (Session[Config.Curren_User] == null)
        {
            return;
        }
        ACCTRUE.WMSBLL.Model.User user = (ACCTRUE.WMSBLL.Model.User)Session[Config.Curren_User];
        userId = user.UserID;

        string showList = ",";

        foreach (Control col in m_pnlInfo.Controls)
        {
            if (((CheckBox)col).Checked)
            {
                showList += ((CheckBox)col).ID + ",";
            }
        }
        this.hidShowList.Value = showList;
        ListViewModel listMode = ListViewModel.GetListViewModelModel(userId, m_pageNbr);

        if (listMode != null)
        {
            listMode.ShowList = showList;
            listMode.HeadFont = Convert.ToInt32(drpHeadFont.SelectedValue);
            listMode.ListFont = Convert.ToInt32(drpListFont.SelectedValue);
            listMode.Update();
            return;
        }
        listMode          = new ListViewModel();
        listMode.PageNbr  = m_pageNbr;
        listMode.ShowList = showList;
        listMode.HeadFont = Convert.ToInt32(drpHeadFont.SelectedValue);
        listMode.ListFont = Convert.ToInt32(drpListFont.SelectedValue);
        listMode.UserID   = userId;
        listMode.Add();
    }
Ejemplo n.º 19
0
    private void InitMenu()
    {
        if (Session[Config.Curren_User] != null)
        {
            ACCTRUE.WMSBLL.Model.User user = (ACCTRUE.WMSBLL.Model.User)Session[Config.Curren_User];
            this.TreeView1.ExpandImageUrl        = "../../Images/tree/img-folder-open.gif";
            this.TreeView1.NoExpandImageUrl      = "../../Images/tree/img-folder.gif";
            this.TreeView1.NodeStyle.NodeSpacing = 2;

            TreeNode node = new TreeNode("数据处理");
            if (user.USERFUNCTION.Data_MoveLog)
            {
                TreeNode sonNode1 = new TreeNode("迁移日志浏览");
                sonNode1.Target      = "RightFrame";
                sonNode1.NavigateUrl = "DataMoveBrowse.aspx";
                node.ChildNodes.Add(sonNode1);
            }
            if (user.USERFUNCTION.Data_Return)
            {
                TreeNode sonNode1 = new TreeNode("数据回迁");
                sonNode1.Target      = "RightFrame";
                sonNode1.NavigateUrl = "DataReturn.aspx";
                node.ChildNodes.Add(sonNode1);
            }
            TreeNode sonNode2 = new TreeNode("传输日志");
            sonNode2.Target      = "RightFrame";
            sonNode2.NavigateUrl = "DataTraLog.aspx";
            node.ChildNodes.Add(sonNode2);

            if (user.USERFUNCTION.Log_Delete)
            {
                TreeNode sonNode1 = new TreeNode("日志删除");
                sonNode1.Target      = "RightFrame";
                sonNode1.NavigateUrl = "LogDelete.aspx";
                node.ChildNodes.Add(sonNode1);
            }
            this.TreeView1.Nodes.Add(node);
        }
    }
Ejemplo n.º 20
0
    private void InitMenu()
    {
        if (Session[Config.Curren_User] != null)
        {
            ACCTRUE.WMSBLL.Model.User user = (ACCTRUE.WMSBLL.Model.User)Session[Config.Curren_User];
            this.TreeView1.ExpandImageUrl        = "../../Images/tree/img-folder-open.gif";
            this.TreeView1.NoExpandImageUrl      = "../../Images/tree/img-folder.gif";
            this.TreeView1.NodeStyle.NodeSpacing = 2;

            TreeNode node = new TreeNode("进出门管理");
            if (user.USERFUNCTION.Car_In)
            {
                TreeNode sonNode1 = new TreeNode("进门管理");
                sonNode1.Target      = "RightFrame";
                sonNode1.NavigateUrl = "InDoor.aspx";
                node.ChildNodes.Add(sonNode1);
            }
            if (user.USERFUNCTION.Car_Out)
            {
                TreeNode sonNode2 = new TreeNode("出门管理");
                sonNode2.Target      = "RightFrame";
                sonNode2.NavigateUrl = "OutDoor.aspx";
                node.ChildNodes.Add(sonNode2);
            }
            this.TreeView1.Nodes.Add(node);

            if (!string.IsNullOrEmpty(Request["TYPE"]))
            {
                foreach (TreeNode snode in node.ChildNodes)
                {
                    if (snode.Text == Request["TYPE"])
                    {
                        snode.Select();
                        break;
                    }
                }
            }
        }
    }
Ejemplo n.º 21
0
 protected void Imagebutton1_Click(object sender, ImageClickEventArgs e)
 {
     if (Session[Config.Curren_User] != null)
     {
         ACCTRUE.WMSBLL.Model.User user = (ACCTRUE.WMSBLL.Model.User)Session[Config.Curren_User];
         if (Application["ATLINEUSERS"] != null)
         {
             Hashtable hs = (Hashtable)Application["ATLINEUSERS"];
             if (hs.Contains(user.UserID))
             {
                 hs.Remove(user.UserID);
             }
         }
     }
     FormsAuthentication.SignOut();
     if (Common.IsOldData)
     {
         Response.Redirect("LoginHistory.aspx");
     }
     else
     {
         Response.Redirect("Login.aspx");
     }
 }
Ejemplo n.º 22
0
 protected void btn_camer_Click(object sender, ImageClickEventArgs e)
 {
     if (string.IsNullOrEmpty(this.hidCValue.Value))
     {
         this.PrintfError("没有选择发运单!");
         return;
     }
     else
     {
         ACCTRUE.WMSBLL.Model.User user = (ACCTRUE.WMSBLL.Model.User)(Session[Config.Curren_User]);
         //string userid = Config.Curuserid;
         string fydh = hidCValue.Value.Trim();
         string v    = QuCheck.sendcmddoor(fydh, user.UserID);
         if (v != "")
         {
             PrintfError("拍照失败!" + v);
             return;
         }
         else
         {
             PrintfError("拍照成功!");
         }
     }
 }
Ejemplo n.º 23
0
 /// <summary>
 /// 保存发卡信息提交数据库保存
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void btnSaveFK_Click(object sender, ImageClickEventArgs e)
 {
     try
     {
         if (string.IsNullOrEmpty(this.hidKHID.Value))
         {
             this.PrintfError("请选择客户!");
             return;
         }
         else
         if (string.IsNullOrEmpty(this.txtICID.Text) || string.IsNullOrEmpty(this.txtICNumber.Text))
         {
             this.PrintfError("IC卡ID和卡号不能为空!");
             return;
         }
         else
         if (ICParam.hasICID(this.txtICID.Text) == true)
         {
             this.PrintfError("本卡被重复使用!");
             return;
         }
         else
         if ((this.hidKHLB.Value.Trim() == "0") && (string.IsNullOrEmpty(this.txtCPH.Text.Trim()) == true))
         {
             this.PrintfError("邢钢内部车辆必须填写车牌号!");
             return;
         }
         else
         if ((this.DDListProposer.SelectedValue == "请选择") || (string.IsNullOrEmpty(this.DDListProposer.SelectedValue)))
         {
             this.PrintfError("选择申请人!");
             return;
         }
         else
         if (this.txtPassOne.Text.Trim() != this.txtPassTwo.Text.Trim())
         {
             this.PrintfError("密码确认错误!");
             return;
         }
         else
         {
             ACCTRUE.WMSBLL.Model.User user = (ACCTRUE.WMSBLL.Model.User)(Session[Config.Curren_User]);
             ICParam parm = new ICParam(this.txtICID.Text.Trim(), this.txtICNumber.Text.Trim(), this.txtPassOne.Text.Trim(), this.hidKHID.Value.ToString().Trim(), this.txtKHName.Text.Trim(), "使用", this.txtCPH.Text.Trim(), user.UserID, DateTime.Now, "", DateTime.MinValue, this.DDListProposer.SelectedValue);
             bool    b    = parm.Add();
             if (b == false)
             {
                 Response.Write("<script>window.alert('您修改过客户名!录入失败!')</script>");
                 return;
             }
             else
             {
                 InitICPassHid();
                 BindICParam();
                 this.btnGS.Enabled       = true;
                 this.btnHF.Enabled       = true;
                 this.btnICFK.Enabled     = true;
                 this.btnTK.Enabled       = true;
                 this.btnPrint.Enabled    = true;
                 this.btnCheckFYD.Enabled = true;
             }
         }
     }
     catch (Exception ex)
     {
         String strEx = ex.Message;
         this.PrintfError("数据访问错误,请重试!");
         return;
     }
 }