protected void btn_input_Click(object sender, EventArgs e)
 {
     try
     {
         if (userinfo.EmployeeID.ToString().Length < 1)
         {
             this.lbl_jg.Text = "该用户没有分配为雇员,导入失败!";
         }
         else
         {
             int num = ProductInfoBus.GetExcelToProductInfo(userinfo.CompanyCD, userinfo.EmployeeID.ToString());
             this.lbl_jg.Text = "Excel数据导入成功";
             if (Session["newfile"] != null)
             {
                 ProductInfoBus.DeleteFile(userinfo.CompanyCD, Session["newfile"].ToString());
             }
             ProductInfoBus.LogInsert(userinfo.CompanyCD, userinfo.DeptID, userinfo.UserID, Request.QueryString["ModuleID"].ToString(), ds.Tables[0].Rows.Count, 1, "成功导入" + ds.Tables[0].Rows.Count.ToString() + "条数据");
         }
         this.tab_end.Visible = true;
         btn_input.Enabled    = false;
     }
     catch (Exception ex)
     {
         btn_input.Enabled    = true;
         this.tab_end.Visible = true;
         this.lbl_jg.Text     = ex.Message;
         ProductInfoBus.LogInsert(userinfo.CompanyCD, userinfo.DeptID, userinfo.UserID, Request.QueryString["ModuleID"].ToString(), 0, 0, this.lbl_jg.Text);
     }
 }