Exemplo n.º 1
0
        //发票删除
        protected void imgbtn_Del_Click(object sender, EventArgs e)
        {
            var invoiceId = ((ImageButton)sender).CommandArgument;
            CompanyFundReceiptInvoiceInfo model =
                _companyFundReceiptInvoice.Getlmshop_CompanyFundReceiptInvoiceByInvoiceId(new Guid(invoiceId));

            if (model.InvoiceState.Equals((int)CompanyFundReceiptInvoiceState.UnSubmit))
            {
                var result =
                    _companyFundReceiptInvoice.Deletelmshop_CompanyFundReceiptInvoiceByInvoiceId(new Guid(invoiceId));
                if (result)
                {
                    MessageBox.AppendScript(this, "setTimeout(function(){ refreshGrid(); }, " + GlobalConfig.PageAutoRefreshDelayTime + ");");
                }
            }
            else
            {
                MessageBox.Show(this, "状态已更新,不允许此操作!");
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// 根据lmshop_CompanyFundReceiptInvoice表的InvoiceId字段删除数据
 /// </summary>
 /// <param name="invoiceId">invoiceId</param>
 /// <returns>返回受影响的行数</returns>
 public bool Deletelmshop_CompanyFundReceiptInvoiceByInvoiceId(System.Guid invoiceId)
 {
     return(_companyFundReceiptInvoiceDao.Deletelmshop_CompanyFundReceiptInvoiceByInvoiceId(invoiceId));
 }