ERP出库审核业务(四十四)
ERP出库审核业务(四十四)
结束表单流程的代码:
protected void btnSubmit_Click(object sender, EventArgs e) { if(this.txtreceiveDate.Text!="") { SqlComm.UpdateTableByCondition("BioSendAppInfo", "receiveDate='" + Convert.ToDateTime(this.txtreceiveDate.Text) + "'", "SendId=" + taskid); } }
根据销售表单统计此表单总金额:
-- Description: 根据销售表单统计此表单总金额-- =============================================ALTER FUNCTION [dbo].[FN_getSendTotalMoneyBySendID] ( @SendID int)RETURNS moneyASBEGIN DECLARE @TotalMoney money SELECT @TotalMoney=sum(ProPrice*ProCount) FROM dbo.BioSendGoodsProWHERE SendID=@SendID RETURN @TotalMoneyEND
创建查询视图:
CREATE VIEW [dbo].[View_SendAppInfoShowList]ASSELECT *,AuditingSate=dbo.FN_CurrentAuditingSate(3,SendId), Transmitter=ISNULL(dbo.FN_CurrentTransmitter(3,SendId),'数据错误'), Listid= ISNULL(dbo.FN_GetDynamicId(3,SendId),0),SendTotal=dbo.FN_getSendTotalMoneyBySendID(SendId) FROM dbo.View_BioSendAppInfo
产品销售发货列表查询:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SendGoodsListShow.aspx.cs" Inherits="BioErpWeb.SendGoods.SendGoodsListShow" %><%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %><%@ Register src="../UserControl/SendProTop.ascx" tagname="SendProTop" tagprefix="uc1" %>