protected void btnCheck_Click(object sender, EventArgs e)
    {
        Js.BLL.BusinessUnit.CheckDal dal = new Js.BLL.BusinessUnit.CheckDal(this.txtEnterpriseID.Text);
        dal.ProductCheck(this.txtEnterpriseID.Text,Session["User"].ToString());

        //自動產生公告
        string[] ToUserName = new string[1];
        ToUserName[0] = "supervisor";
        int ReceiverFlag = 1;
        string[] ReceiveUnitNo = new string[1];
        ReceiveUnitNo[0] = this.txtEnterpriseID.Text;
        string Title = Resources.Resource.EP_ProductCheckMessageTitle;
        string Content = Resources.Resource.EP_ProductCheckMessageContent;

        Common.SystemMessage(ToUserName, ReceiverFlag, ReceiveUnitNo, Title, Content);
        //Js.BLL.BaseDal bdal = new Js.BLL.BaseDal(FormID);
        //DataTable dtSub = bdal.GetSubDetail(this.txtEnterpriseID.Text).Tables[0];
        //this.GridView1.DataSource = dtSub.DefaultView;
        //this.GridView1.DataBind();
        Response.Redirect("ProductChecks.aspx?FormID=" + Server.UrlEncode(FormID));
    }
Beispiel #2
0
    public void InsertUploadRecord(string UserName, byte UseUnit, byte FileType, string FileName, string FileDesc, string Memo)
    {
        UserName = Microsoft.JScript.GlobalObject.unescape(UserName);
        FileName = Microsoft.JScript.GlobalObject.unescape(FileName);
        FileDesc = Microsoft.JScript.GlobalObject.unescape(FileDesc);
        Memo = Microsoft.JScript.GlobalObject.unescape(Memo);

        Js.BLL.BusinessUnit.CheckDal dal = new Js.BLL.BusinessUnit.CheckDal();
        dal.InsertIntoUploadRecord(UserName, UseUnit, FileType, FileName, FileDesc, Memo);
    }