Exemple #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, "状态已更新,不允许此操作!");
            }
        }
Exemple #2
0
 /// <summary>
 /// 根据lmshop_CompanyFundReceiptInvoice表的InvoiceId字段返回数据
 /// </summary>
 /// <param name="invoiceId">InvoiceId</param>
 /// <returns></returns>
 public CompanyFundReceiptInvoiceInfo Getlmshop_CompanyFundReceiptInvoiceByInvoiceId(System.Guid invoiceId)
 {
     return(_companyFundReceiptInvoiceDao.Getlmshop_CompanyFundReceiptInvoiceByInvoiceId(invoiceId));
 }