Ejemplo n.º 1
0
 /// <summary>
 /// 导出Excel
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void lnkBtnExport_OnClick(object sender, EventArgs e)
 {
     if (ddlLotNum.SelectedIndex != 0)
     {
         ExportTMDataFromDB.ExportPSData(ddlLotNum.SelectedValue);
     }
     else
     {
         ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "alert('请选择要导出的批号!!!');", true);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 导出涂装方案
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void btnMsExport_OnClick(object sender, EventArgs e)
 {
     if (ddlLotNumList.SelectedIndex != 0)
     {
         ExportTMDataFromDB.ExportPSData(ddlLotNumList.SelectedValue);
     }
     else
     {
         this.ClientScript.RegisterStartupScript(GetType(), "js", "alert('请选择批号!!!');self.close();", true);
     }
 }